:root {
  --paper: #f7f8f4;
  --surface: #fff;
  --ink: #182e2a;
  --muted: #52645f;
  --line: #d9e1dc;
  --green: #195d4a;
  --soft: #e9f1eb;
  --warning: #805400;
  --danger: #a42b38;
  --radius: 12px
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Telugu", sans-serif
}

::selection {
  background: #c8e5d4;
  color: var(--ink)
}

button,
input,
select,
textarea {
  font: inherit;
  accent-color: var(--green);
  caret-color: var(--green)
}

button,
.button {
  min-height: 43px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 9px 15px;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px
}

button:hover,
.button:hover {
  background: var(--soft)
}

button:disabled {
  opacity: .48;
  cursor: not-allowed
}

.primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green)
}

.primary:hover {
  background: #104b3b
}

.quiet {
  background: transparent
}

.danger {
  color: var(--danger)
}

:focus-visible {
  outline: 3px solid #3b8c71;
  outline-offset: 3px
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #aabbb1;
  border-radius: 7px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  min-width: 0
}

input[type=file] {
  font-size: 14px;
  padding: 10px
}

input[type=checkbox] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin: 3px 0
}

label {
  display: block;
  font-size: 14px;
  font-weight: 600
}

label input,
label select,
label textarea {
  margin-top: 6px
}

textarea {
  resize: vertical
}

a {
  color: var(--green);
  text-underline-offset: 3px
}

h1,
h2,
h3,
p {
  margin-top: 0
}

h1 {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -.025em;
  margin-bottom: 10px;
  font-weight: 650
}

h2 {
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -.015em;
  margin-bottom: 5px
}

h3 {
  font-size: 17px;
  margin: 0 0 12px
}

p {
  max-width: 75ch
}

p:last-child {
  margin-bottom: 0
}

.muted {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400
}

.masthead {
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  gap: 12px;
  flex-wrap: nowrap;
  box-sizing: border-box;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-size: 18px;
  font-weight: 650;
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand svg {
  flex-shrink: 0;
}

.masthead button {
  color: #fff;
  border-color: #779b8c;
  font-size: 13px;
}

.masthead button:hover {
  background: #274c40;
}

.masthead-icon-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  cursor: pointer !important;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease !important;
  flex-shrink: 0 !important;
  line-height: 1 !important;
}

.masthead-icon-btn:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  color: #ffffff !important;
}

.masthead-icon-btn:active {
  transform: scale(0.94);
}

.masthead-icon-btn svg {
  display: block;
  width: 19px;
  height: 19px;
  pointer-events: none;
}

.masthead-logout-btn:hover {
  background: rgba(239, 68, 68, 0.25) !important;
  border-color: #f87171 !important;
  color: #fca5a5 !important;
}

main {
  max-width: 1540px;
  margin: auto;
  padding: 32px
}

.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px
}

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

.info,
.warning,
.error {
  padding: 13px 16px;
  border-radius: 7px;
  font-size: 14px
}

.info {
  background: #eaf0eb;
  color: #284e40
}

.warning {
  background: #fff2d7;
  color: var(--warning)
}

.error {
  background: #fcebed;
  color: var(--danger)
}

#notice {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: #183f32;
  color: white;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 6px 22px #102d3020
}

details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius)
}

summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 650
}

summary span {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 12px
}

.import-form {
  padding: 4px 24px 24px
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 16px
}

.mapping {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px
}

.mapping-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 20px
}

.mapping-title input {
  max-width: 90px
}

.form-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px
}

.batch-bar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin: 28px 0 24px;
  gap: 20px
}

.batch-bar label {
  width: min(100%, 460px)
}

.batch-bar>div {
  display: flex;
  gap: 10px
}

.workspace {
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  gap: 24px;
  align-items: start
}

.queue {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px 14px;
  position: sticky;
  top: 16px
}

.queue-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 3px 12px
}

.queue input,
.queue select {
  margin-bottom: 10px;
  font-size: 14px
}

#slip-list {
  max-height: 680px;
  overflow-y: auto;
  scrollbar-color: #9eb7a8 transparent;
  scrollbar-width: thin
}

.slip-item {
  width: 100%;
  display: block;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 13px 10px;
  font-size: 14px;
  font-weight: 500;
  background: white
}

.slip-item[aria-current=true] {
  background: var(--soft);
  box-shadow: inset 0 0 0 1px #749f88
}

.slip-item strong {
  display: block;
  overflow-wrap: anywhere;
  font-weight: 600
}

.slip-item small {
  display: block;
  color: var(--muted);
  margin-top: 3px
}

.review {
  min-width: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px
}

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

.review-heading p {
  font-size: 14px;
  color: var(--muted);
  margin: 7px 0 0
}

.badge {
  font-size: 13px;
  white-space: nowrap;
  padding: 5px 10px;
  background: var(--soft);
  color: var(--green);
  border-radius: 6px
}

.review-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 1fr);
  gap: 28px
}

.image-pane {
  min-width: 0
}

.image-pane img {
  width: 100%;
  display: block;
  background: #f6f5ee;
  border: 1px solid var(--line);
  border-radius: 4px
}

.image-tools {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 14px 0 20px
}

.image-tools .button {
  font-size: 13px
}

.image-pane summary {
  padding: 12px
}

.image-pane pre {
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 260px;
  overflow: auto;
  font: 13px/1.6 inherit;
  padding: 0 14px 14px
}

.search {
  display: flex;
  gap: 8px;
  margin-bottom: 14px
}

.search input {
  font-size: 14px
}

.recipient-pane>label {
  margin-bottom: 14px
}

dl {
  display: grid;
  grid-template-columns: 95px 1fr;
  gap: 9px 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  margin: 0 0 18px
}

dt {
  color: var(--muted)
}

dd {
  margin: 0;
  overflow-wrap: anywhere
}

.check {
  display: flex;
  gap: 11px;
  align-items: start;
  font-weight: 400;
  font-size: 14px
}

.review-actions,
.send-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 12px
}

.review-actions button,
.send-actions button {
  font-size: 14px
}

.send-panel {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 24px
}

.send-panel p {
  font-size: 14px;
  color: var(--muted)
}

.send-panel label span {
  display: block
}

.send-panel label textarea {
  margin-bottom: 12px
}

.empty {
  padding: 64px 24px;
  text-align: center
}

.empty p {
  margin-left: auto;
  margin-right: auto;
  color: var(--muted)
}

footer {
  padding: 32px 0 8px;
  color: var(--muted);
  font-size: 13px
}

progress {
  width: 100%;
  height: 8px;
  accent-color: var(--green)
}

.login {
  max-width: 1000px;
  display: grid;
  grid-template-columns: 1fr 400px;
  column-gap: 100px;
  padding: 90px 0;
  margin: auto
}

.login h1 {
  font-size: 48px;
  line-height: 1.15;
  align-self: end
}

.login>p {
  grid-column: 1;
  max-width: 35ch;
  color: var(--muted)
}

.login form {
  grid-column: 2;
  grid-row: 1/3;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px
}

.login form label {
  margin-bottom: 20px
}

.login form button {
  width: 100%
}

.login form p {
  margin-top: 16px
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0
}

[hidden] {
  display: none !important
}

@media(max-width:1150px) {
  .workspace {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 16px
  }

  .review-columns {
    grid-template-columns: 1fr
  }

  .mapping {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }

  .image-pane img {
    max-height: 520px;
    object-fit: contain
  }

  .login {
    column-gap: 45px
  }
}

@media(max-width:720px) {
  main {
    padding: 22px 16px
  }

  .masthead {
    padding: 10px 16px;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .brand {
    font-size: 17px
  }

  h1 {
    font-size: 27px
  }

  .page-heading {
    display: block
  }

  .page-heading>.button {
    margin-top: 18px
  }

  .two,
  .mapping {
    grid-template-columns: 1fr
  }

  .import-form {
    padding: 4px 16px 20px
  }

  .form-footer,
  .batch-bar {
    align-items: stretch;
    flex-direction: column
  }

  .batch-bar label {
    width: 100%
  }

  .batch-bar>div {
    flex-wrap: wrap
  }

  .workspace {
    grid-template-columns: 1fr
  }

  .queue {
    position: static
  }

  #slip-list {
    max-height: 220px
  }

  .review {
    padding: 18px
  }

  .review-columns {
    grid-template-columns: minmax(0, 1fr)
  }

  .image-tools {
    flex-wrap: wrap
  }

  .review-heading {
    gap: 10px
  }

  .login {
    display: block;
    padding: 32px 0
  }

  .login h1 {
    font-size: 38px
  }

  .login form {
    margin-top: 28px
  }

  .mapping-title {
    align-items: start
  }

  footer {
    font-size: 12px
  }
}

#notice button {
  flex-shrink: 0;
  background: transparent;
  border-color: #ffffff90;
  color: #fff;
  font-size: 13px
}

#notice button:hover {
  background: #ffffff20
}

@media(max-width:720px) {
  #notice {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 14px 16px
  }
}

.auth-forms {
  grid-column: 2;
  grid-row: 1/3;
  min-width: 0
}

.auth-switch {
  display: flex;
  gap: 8px;
  margin-bottom: 12px
}

.auth-switch button {
  flex: 1
}

.auth-switch button[aria-pressed=true] {
  background: var(--green);
  color: white;
  border-color: var(--green)
}

.login .auth-forms form {
  display: block;
  margin: 0
}

.auth-forms h2 {
  margin-bottom: 24px
}

.whatsapp-guide {
  padding: 0 24px 20px
}

.whatsapp-guide ol {
  max-width: 75ch;
  padding-left: 22px
}

.whatsapp-guide li {
  margin-bottom: 10px
}

.whatsapp-guide form {
  max-width: 580px
}

.whatsapp-guide form>label {
  margin-bottom: 16px
}

#whatsapp-setup {
  margin-bottom: 20px
}

@media(max-width:720px) {
  .auth-forms {
    margin-top: 28px
  }

  .whatsapp-guide {
    padding: 0 16px 18px
  }
}

.finder-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin: 0 0 24px
}

.finder-form {
  display: flex;
  align-items: end;
  gap: 12px;
  margin: 16px 0
}

.finder-form label {
  flex: 1;
  min-width: 0
}

.finder-row {
  display: grid;
  grid-template-columns: 22px 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line)
}

.finder-row img {
  width: 92px;
  max-height: 100px;
  object-fit: contain
}

.finder-row p {
  margin: 3px 0;
  font-size: 14px;
  overflow-wrap: anywhere
}

.finder-row strong {
  overflow-wrap: anywhere
}

.selection-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding-top: 20px
}

.selection-bar>span {
  margin-right: auto
}

.verification-body {
  padding: 0 16px 16px
}

.verification-body>label {
  margin-bottom: 16px
}

#delivery-module {
  margin-top: 28px
}

#delivery-module>#whatsapp-setup {
  margin: 0 20px 20px
}

#delivery-module>.send-panel {
  padding: 20px;
  margin: 0
}

#verification-options summary {
  padding: 12px
}

#verification-options summary span {
  display: block;
  margin: 0
}

.finder-empty {
  padding: 16px;
  background: var(--paper);
  border-radius: 6px
}

@media(max-width:720px) {
  .finder-panel {
    padding: 18px
  }

  .finder-form {
    align-items: stretch;
    flex-direction: column
  }

  .finder-row {
    grid-template-columns: 22px 64px minmax(0, 1fr);
    gap: 10px
  }

  .finder-row img {
    width: 64px
  }

  .finder-row>button {
    grid-column: 3;
    justify-self: start
  }

  .selection-bar>span {
    width: 100%
  }

  #delivery-module>#whatsapp-setup {
    margin: 0 12px 16px
  }
}

.finder-form label {
  position: relative
}

.finder-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 20;
  margin-top: 4px;
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 24px #182e2a20
}

.finder-suggestions button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  font-weight: 400;
  padding: 12px
}

.finder-suggestions button strong,
.finder-suggestions button small {
  display: block;
  overflow-wrap: anywhere
}

.finder-suggestions button small {
  color: var(--muted);
  font-size: 13px
}

.finder-suggestions button[aria-selected=true] {
  background: var(--soft)
}

.finder-suggestions p {
  padding: 12px;
  margin: 0;
  font-size: 14px;
  font-weight: 400
}

#central-panel {
  margin-bottom: 28px
}

.central-body {
  padding: 0 24px 24px
}

.central-body h3 {
  margin-top: 24px
}

.table-scroll {
  overflow-x: auto
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px
}

th,
td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap
}

.activity-row {
  padding: 18px 0;
  border-bottom: 1px solid var(--line)
}

.activity-row p {
  margin: 4px 0
}

.activity-row .check {
  display: inline-flex;
  margin: 10px 20px 10px 0
}

.activity-row textarea {
  margin: 10px 0
}

.activity-row button {
  margin-right: 8px
}

@media(max-width:720px) {
  .central-body {
    padding: 0 16px 20px
  }
}

.central-slip-preview {
  display: block;
  width: min(100%, 420px);
  height: auto;
  max-height: 300px;
  object-fit: contain;
  object-position: left top;
  margin: 12px 0
}

.central-body .finder-form label {
  position: relative
}

.central-body #ward-create {
  flex-wrap: wrap
}

.central-body #ward-create input {
  flex: 1;
  min-width: 140px
}

.settings-screen {
  background: var(--surface);
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 28px;
  box-shadow: 0 4px 18px rgba(24, 46, 42, .05);
  animation: settingsFadeIn .2s ease-out
}

@keyframes settingsFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.settings-screen-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1.5px solid var(--line);
  margin-bottom: 20px;
  flex-wrap: wrap
}

.btn-back-screen {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #1e293b;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .15s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05)
}

.btn-back-screen:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  transform: translateX(-2px)
}

.settings-screen-heading h2 {
  margin: 0 0 4px;
  font-size: 24px;
  color: var(--ink)
}

.settings-screen-heading p {
  margin: 0;
  font-size: 14px
}

.settings-panel {
  background: var(--surface);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 28px
}

.settings-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0
}

.settings-tabs button {
  font-size: 14px;
  font-weight: 650;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all .15s ease
}

.settings-tabs button[aria-pressed=true] {
  background: var(--green);
  color: white;
  border-color: var(--green);
  box-shadow: 0 2px 6px rgba(21, 128, 61, 0.25)
}

.settings-panel h3 {
  margin-top: 24px
}

#identity {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  flex-shrink: 0;
}

#volunteer-name {
  font-size: 14px;
  font-weight: 600;
  color: #f1f5f9;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  line-height: 1.2;
}

@media(max-width:720px) {

  .settings-panel,
  .settings-screen {
    padding: 16px
  }

  .masthead #identity button {
    margin-left: 0
  }

  .settings-screen-header {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 12px
  }
}

.central-upload-box {
  background: linear-gradient(180deg, #f0f7f3 0%, #f7faf8 100%);
  border: 1.5px solid #9fc4b1;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 0 24px 20px
}

.central-upload-box h2 {
  margin: 0 0 4px;
  font-size: 19px;
  color: #113d2f
}

.upload-box-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 14px
}

.upload-main-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  gap: 14px;
  align-items: end
}

.upload-submit-btn {
  min-height: 44px;
  padding: 10px 22px;
  font-size: 15px;
  white-space: nowrap
}

.optional-ward-options {
  margin-top: 12px;
  border: 1px solid #cce0d5;
  background: #fff;
  border-radius: 8px
}

.optional-ward-options summary {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted)
}

.optional-ward-body {
  padding: 8px 14px 14px
}

.upload-status-bar {
  margin-top: 12px;
  padding: 10px 14px;
  background: #e6f4ea;
  border: 1px solid #a8dab5;
  color: #13532c;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px
}

.main-wards-module {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 28px;
  box-shadow: 0 4px 18px rgba(24, 46, 42, .04)
}

.module-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 22px 24px 16px
}

.module-header h1 {
  font-size: 26px;
  margin: 0 0 4px
}

.module-header-actions {
  display: flex;
  gap: 10px;
  align-items: center
}

.ward-cover-banner {
  margin-top: 16px;
  background: #fff;
  border: 1.5px solid #bae6fd;
  border-left: 5px solid #0284c7;
  border-radius: 10px;
  padding: 14px 18px
}

.ward-banner-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e0f2fe
}

.ward-banner-title strong {
  font-size: 16px;
  color: #0c4a6e
}

.ward-banner-sub {
  font-size: 13px;
  color: #0369a1;
  font-weight: 600
}

.ward-banner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 18px;
  font-size: 13.5px
}

.ward-banner-item {
  display: flex;
  gap: 6px;
  align-items: baseline
}

.ward-banner-lbl {
  color: var(--muted);
  flex-shrink: 0
}

.ward-banner-val {
  color: var(--ink)
}

.ward-table-actions {
  display: flex;
  gap: 8px;
  align-items: center
}

.btn-small {
  min-height: 32px;
  padding: 5px 11px;
  font-size: 12.5px
}

.voter-search-section {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line)
}

.voter-search-section h2 {
  font-size: 18px;
  margin-bottom: 10px
}

.central-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 4px 0 12px
}

.central-results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 14px 0 10px
}

.voter-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 16px 0
}

.voter-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: 0 2px 8px rgba(24, 46, 42, .04);
  transition: box-shadow .2s ease, border-color .2s ease
}

.voter-card:hover {
  box-shadow: 0 4px 16px rgba(24, 46, 42, .08);
  border-color: #b0c7ba
}

.voter-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px
}

.voter-card-badges .badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 6px;
  letter-spacing: .02em
}

.badge-division {
  background: #e0f2fe;
  color: #0369a1
}

.badge-booth {
  background: #fef3c7;
  color: #92400e
}

.badge-serial {
  background: #dcfce7;
  color: #166534;
  font-weight: 700
}

.badge-ac {
  background: #f1f5f9;
  color: #475569
}

.badge-age-gender {
  background: #f3e8ff;
  color: #6b21a8
}

.badge-attended {
  background: #dcfce7;
  color: #15803d
}

.badge-unmarked {
  background: #f3f4f6;
  color: #6b7280
}

.voter-card-body {
  display: grid;
  grid-template-columns: minmax(190px, 255px) 1fr;
  gap: 20px;
  align-items: start
}

.voter-slip-col {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.voter-slip-img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  background: #faf9f5;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: transform .15s ease
}

.voter-slip-img:hover {
  transform: scale(1.02)
}

.voter-no-slip {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  background: #f8fafc;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 12px
}

.voter-info-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0
}

.voter-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px
}

.voter-serial-pill {
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 2px 9px;
  border-radius: 999px
}

.voter-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  line-height: 1.3
}

.voter-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 16px;
  font-size: 14px
}

.voter-field-rel {
  grid-column: 1/-1;
  padding-bottom: 6px;
  border-bottom: 1px dashed #e2e8f0;
  margin-bottom: 2px
}

.rel-name-val {
  font-size: 15px;
  color: var(--ink);
  font-weight: 700
}

.voter-field {
  display: flex;
  align-items: baseline;
  gap: 8px;
  overflow-wrap: anywhere
}

.voter-field-wide {
  grid-column: 1/-1
}

.field-lbl {
  color: var(--muted);
  font-weight: 500;
  font-size: 13px;
  min-width: 110px;
  flex-shrink: 0
}

.field-val {
  color: var(--ink);
  font-weight: 600;
  word-break: break-word
}

.badge-house {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 2px 8px;
  border-radius: 4px
}

.epic-tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 700;
  background: #fefce8;
  border: 1px solid #fef08a;
  color: #854d0e;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: .04em
}

.btn-copy-id {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  font-size: 13px;
  opacity: .7;
  border-radius: 4px
}

.btn-copy-id:hover {
  opacity: 1;
  background: var(--soft)
}

.search-match-badge {
  display: inline-block;
  background: #ede9fe;
  color: #5b21b6;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 4px;
  margin-top: 4px;
  font-weight: 500;
  align-self: flex-start
}

.voter-actions-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line)
}

.btn-action {
  font-size: 13px;
  padding: 7px 13px;
  min-height: 38px
}

.btn-action-download,
.btn-action-print {
  border-color: #cbd5e1;
  cursor: pointer
}

.btn-action-whatsapp {
  background: #25d366;
  color: #ffffff;
  border: 1.5px solid #1ebe5d;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.28);
  cursor: pointer;
  transition: transform .12s, background .15s, box-shadow .15s
}

.btn-action-whatsapp:hover {
  background: #1ebe5d;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.38);
  transform: translateY(-1px)
}

.voter-attendance-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  background: #f8fafc;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0
}

.reason-input {
  max-width: 200px;
  font-size: 13px;
  padding: 6px 8px
}

.advanced-drawer {
  margin-bottom: 20px;
  background: #fafbf9
}

.advanced-drawer-body {
  padding: 0 20px 20px
}

@media(max-width:900px) {
  .upload-main-row {
    grid-template-columns: 1fr
  }

  .central-upload-box {
    margin: 0 16px 16px;
    padding: 16px
  }
}

@media(max-width:720px) {
  .voter-card-body {
    grid-template-columns: 1fr
  }

  .voter-slip-img {
    max-height: 180px
  }

  .voter-meta-grid {
    grid-template-columns: 1fr
  }

  .voter-actions-bar {
    flex-direction: column;
    align-items: stretch
  }

  .voter-attendance-group {
    margin-left: 0;
    width: 100%;
    justify-content: space-between
  }
}


/* ── VOTER ATTENDANCE MODULE & COMPACT COMMAND SEARCH BAR ── */
.attend-module-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.attend-module-header h2 {
  font-size: 18px;
  font-weight: 800;
  margin: 0;
  color: var(--ink);
}

.attend-module-header .muted {
  font-size: 12.5px;
  margin: 0;
  color: var(--muted);
}

.attend-search-container {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 12px 16px;
  margin: 0 0 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.attend-search-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  margin-bottom: 10px;
}

.search-input-wrap {
  flex: 1;
  position: relative;
  min-width: 0;
}

.search-input-wrap input[type="search"] {
  width: 100%;
  height: 42px;
  font-size: 14.5px;
  padding: 8px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--ink);
  box-sizing: border-box;
  transition: all .15s ease;
}

.search-input-wrap input[type="search"]:focus {
  background: #ffffff;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.15);
  outline: none;
}

.search-main-btn {
  height: 42px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(21, 128, 61, 0.2);
  transition: all .15s ease;
}

.search-main-btn:hover {
  background: #166534;
  transform: translateY(-1px);
}

.btn-clear-search {
  height: 42px;
  padding: 0 14px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 8px;
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  color: #475569;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s ease;
}

.btn-clear-search:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* ── VOICE COMMAND & SPEECH SEARCH ── */
.btn-voice-search {
  height: 42px;
  padding: 0 14px;
  font-size: 13.5px;
  font-weight: 750;
  border-radius: 8px;
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  color: #15803d;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .15s ease;
  box-shadow: 0 1px 3px rgba(34, 197, 94, 0.12);
}

.btn-voice-search:hover {
  background: #dcfce7;
  border-color: #4ade80;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(34, 197, 94, 0.22);
}

.btn-voice-search .mic-svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.2;
  flex-shrink: 0;
}

.btn-voice-search.is-listening {
  background: #fef2f2;
  border-color: #f87171;
  color: #dc2626;
  animation: btn-pulse-red 1.4s infinite;
}

@keyframes btn-pulse-red {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

/* Voice candidates / "Did you mean?" bar on main search screen */
.voice-candidates-bar {
  margin-top: 10px;
  padding: 8px 12px;
  background: #f0fdf4;
  border: 1px dashed #86efac;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
}

.voice-cand-lbl {
  font-weight: 700;
  color: #166534;
  white-space: nowrap;
}

.voice-cand-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.voice-cand-chip {
  background: #ffffff;
  border: 1px solid #86efac;
  color: #15803d;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all .12s ease;
}

.voice-cand-chip:hover {
  background: #dcfce7;
  border-color: #16a34a;
  transform: translateY(-1px);
}

/* Voice Search Modal & Audio Visualizer */
.voice-modal-dialog {
  max-width: 440px;
  text-align: center;
  border-radius: 14px;
}

.voice-lang-bar {
  display: inline-flex;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 999px;
  gap: 4px;
  margin: 0 auto 16px;
  border: 1px solid #e2e8f0;
}

.voice-lang-btn {
  border: none;
  background: transparent;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: all .15s ease;
}

.voice-lang-btn.active {
  background: #ffffff;
  color: #15803d;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.voice-mic-halo {
  width: 84px;
  height: 84px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #15803d;
  box-shadow: 0 4px 14px rgba(22, 101, 52, 0.18);
  transition: all .2s ease;
}

.voice-mic-halo.is-listening {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #dc2626;
  animation: pulse-halo 1.6s infinite;
}

@keyframes pulse-halo {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
  }

  70% {
    box-shadow: 0 0 0 20px rgba(239, 68, 68, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.voice-transcript-box {
  min-height: 74px;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.voice-live-text {
  font-size: 18px;
  font-weight: 750;
  color: #0f172a;
  line-height: 1.35;
  word-break: break-word;
  text-align: center;
  margin: 0 0 4px;
}

.voice-live-sub {
  font-size: 12.5px;
  color: #15803d;
  font-weight: 600;
  margin: 0;
}

.voice-alts-box {
  text-align: left;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 14px;
}

.voice-alts-title {
  font-size: 12px;
  font-weight: 750;
  color: #166534;
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.voice-noise-tip {
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
  margin: 0 0 10px;
}

.voice-error-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 12px;
  text-align: left;
  line-height: 1.45;
}

.attend-filters-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  align-items: center;
}

.compact-filter-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 4px 10px;
  margin: 0;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}

.compact-filter-item:hover,
.compact-filter-item:focus-within {
  background: #ffffff;
  border-color: var(--green);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.filter-icon-lbl {
  font-size: 12.5px;
  font-weight: 750;
  color: #334155;
  white-space: nowrap;
  flex-shrink: 0;
}

.compact-filter-item select {
  flex: 1;
  min-width: 0;
  height: 30px;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 2px 4px;
  margin: 0;
  outline: none;
}

@media(max-width:960px) {
  .attend-filters-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width:600px) {
  .attend-search-bar {
    flex-wrap: wrap;
  }

  .search-input-wrap {
    width: 100%;
    flex: 1 1 100%;
  }

  .btn-voice-search {
    flex: 1;
    justify-content: center;
    padding: 0 10px;
  }

  .search-main-btn {
    flex: 1;
    justify-content: center;
    padding: 0 12px;
  }

  .btn-clear-search {
    flex: 0 0 auto;
  }

  .attend-filters-bar {
    grid-template-columns: 1fr;
  }
}

/* ── LIGHTWEIGHT EMPTY SEARCH STATE (Search & Found Only) ── */
.attend-empty-search-state {
  text-align: center;
  padding: 45px 20px;
  background: #ffffff;
  border: 1.5px dashed #cbd5e1;
  border-radius: 12px;
  margin: 8px 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.empty-search-icon {
  font-size: 36px;
  line-height: 1;
  margin-bottom: 10px;
  opacity: 0.85;
}

.attend-empty-search-state h3 {
  font-size: 17px;
  font-weight: 750;
  color: #0f172a;
  margin: 0 0 6px;
}

.attend-empty-search-state p {
  font-size: 13.5px;
  color: #64748b;
  max-width: 480px;
  margin: 0;
  line-height: 1.45;
}

/* ── ATTENDANCE DECISION BOX ON CARD ── */
.voter-attend-box {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  transition: background .2s, border-color .2s;
}

.voter-attend-box.is-prompt {
  background: linear-gradient(135deg, #fefce8, #fffbeb);
  border-color: #fde047;
}

.voter-attend-box.is-confirmed {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border-color: #86efac;
}

.attend-prompt-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.attend-badge-unmarked {
  background: #d97706;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  display: inline-block;
}

.attend-badge-attended {
  background: #15803d;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  display: inline-block;
}

.attend-quick-buttons {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.btn-attend {
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: transform .1s, box-shadow .15s;
}

.btn-attend:active {
  transform: scale(.98);
}

.btn-attend-visit {
  background: #15803d;
  color: #fff;
}

.btn-attend-visit:hover {
  background: #166534;
  box-shadow: 0 2px 8px #15803d40;
}

.btn-attend-slip {
  background: #0369a1;
  color: #fff;
}

.btn-attend-slip:hover {
  background: #0284c7;
  box-shadow: 0 2px 8px #0369a140;
}

.btn-attend-both {
  background: #7c3aed;
  color: #fff;
}

.btn-attend-both:hover {
  background: #6d28d9;
  box-shadow: 0 2px 8px #7c3aed40;
}

.attend-confirmed-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.attend-meta {
  font-size: 12.5px;
}

.btn-attend-undo {
  margin-left: auto;
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s;
}

.btn-attend-undo:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.attend-undo-drawer {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px dashed #bbf7d0;
}

/* =====================================================================
   DASHBOARD STYLES
   ===================================================================== */

/* Tab bar */
.dash-tab-bar {
  display: flex;
  gap: 6px;
  padding: 6px 16px;
  border-bottom: 1.5px solid var(--line);
  background: #f8fafc;
}

.dash-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  min-height: 40px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all .15s ease;
}

.dash-tab .tab-ico {
  font-size: 16px;
}

.dash-tab .tab-txt {
  font-size: 13px;
  font-weight: 700;
}

.dash-tab:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.dash-tab.active {
  color: #ffffff;
  background: #0284c7;
  border-color: #0369a1;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(2, 132, 199, 0.25);
}

.dash-tab.active .tab-txt {
  color: #ffffff;
}

/* Dashboard panel wrapper */
.dash-panel {
  padding: 12px 14px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* ── 1. UNIFIED COMMAND HEADER ── */
.dash-command-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.dash-hdr-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.dash-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dash-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.02em;
}

.dash-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #15803d;
  background: #dcfce7;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid #86efac;
}

.dash-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.4);
}

.dash-hdr-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dash-btn-export {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0284c7;
  color: #ffffff !important;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid #0369a1;
  cursor: pointer;
  text-decoration: none !important;
  transition: background 0.15s, transform 0.1s;
  box-shadow: 0 1px 3px rgba(2, 132, 199, 0.25);
  white-space: nowrap;
}

.dash-btn-export:hover {
  background: #0369a1;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.dash-btn-export:active {
  transform: scale(0.97);
}

.dash-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #15803d;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.dash-btn-primary:hover {
  background: #166534;
  transform: translateY(-1px);
}

.dash-command-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.dash-ctrl-select {
  flex: 1 1 0;
  min-width: 0;
  height: 36px;
  padding: 4px 8px;
  font-size: 12.5px;
  font-weight: 600;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  outline: none;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  transition: border-color 0.15s;
}

.dash-ctrl-select:focus {
  border-color: #15803d;
  box-shadow: 0 0 0 2px rgba(21, 128, 61, 0.15);
}

.dash-ctrl-booth {
  flex: 1.1 1 0;
}

.dash-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
}

.dash-icon-btn:hover {
  background: var(--surface);
  border-color: #94a3b8;
}

/* ── 2. ESSENTIAL 4 KPI CARDS (RESPONSIVE GRID) ── */
.dash-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.dash-stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid #0284c7;
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.15s, transform 0.1s, border-color 0.15s;
}

.dash-stat-card.is-clickable {
  cursor: pointer;
}

.dash-stat-card.is-clickable:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.dash-stat-card.is-active {
  border-color: #15803d;
  box-shadow: 0 0 0 2px #15803d, 0 4px 12px rgba(0, 0, 0, 0.08);
  background: #fcfdfc;
}

.dash-stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.dash-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.dash-stat-num {
  font-size: 22px;
  font-weight: 850;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.dash-stat-lbl {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.dash-stat-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── 3. COMMON CARDS & HEADINGS ── */
.dash-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  max-width: 100%;
  box-sizing: border-box;
}

.dash-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.dash-section-left {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.dash-section-title {
  font-size: 15px;
  font-weight: 750;
  color: var(--ink);
}

.dash-section-te {
  font-size: 12px;
  color: var(--muted);
}

.dash-sub-count {
  font-size: 12px;
  font-weight: 600;
}

/* ── 4. LIVE POLLING SITUATION & TURNOUT MONITOR ── */
.dash-monitor-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  align-items: center;
}

.dash-turnout-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dash-turnout-meter {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
}

.turnout-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
  gap: 8px;
}

.turnout-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.turnout-counts {
  font-size: 11.5px;
}

.turnout-track {
  height: 9px;
  background: #e2e8f0;
  border-radius: 5px;
  overflow: hidden;
}

.turnout-fill {
  height: 100%;
  background: linear-gradient(90deg, #15803d, #22c55e);
  border-radius: 5px;
  transition: width 0.5s ease;
}

.dash-donut-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dash-donut-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dash-legend-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  background: var(--paper);
  padding: 3px 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.dash-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Operational Field Metrics Column */
.dash-op-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.op-stat-pill {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.op-stat-num {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
}

.op-stat-lbl {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

/* Sparkline for Hourly flow */
.dash-hourly-compact {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.dash-hourly-sparkline {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 48px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.dash-spark-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 0;
  min-width: 24px;
  height: 100%;
}

.spark-bar-track {
  flex: 1;
  width: 100%;
  max-width: 16px;
  display: flex;
  align-items: flex-end;
  background: #f1f5f9;
  border-radius: 3px;
  overflow: hidden;
}

.spark-bar-fill {
  width: 100%;
  border-radius: 3px;
  transition: height 0.4s;
}

.spark-label {
  font-size: 9.5px;
  color: var(--muted);
  margin-top: 3px;
}

/* ── 5. BOOTH / PART BREAKDOWN & LIVE STATUS (MOBILE PERFECT) ── */
.dash-booths-card {
  padding: 14px 14px;
}

.dash-booth-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

.dash-booth-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s, background 0.15s;
}

.dash-booth-card:hover {
  border-color: #16a34a;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.07);
  transform: translateY(-1px);
}

.dash-booth-card:active {
  transform: scale(0.99);
}

.dash-booth-card.is-active {
  border-color: #16a34a;
  background: #f0fdf4;
  box-shadow: 0 0 0 2px #86efac;
}

.dash-booth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dash-booth-badge-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.booth-badge {
  background: #195d4a;
  color: #ffffff;
  font-size: 12px;
  font-weight: 750;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.booth-active-indicator {
  font-size: 10.5px;
  font-weight: 750;
  color: #166534;
  background: #bbf7d0;
  padding: 2px 6px;
  border-radius: 8px;
}

.booth-turnout-badge {
  font-size: 11.5px;
  font-weight: 750;
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.turnout-high {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.turnout-med {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.turnout-low {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.dash-booth-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.booth-ps-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.booth-ps-sub {
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-booth-meter {
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
  margin: 3px 0;
}

.dash-booth-meter-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}

.dash-booth-kpis {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--ink);
  gap: 4px;
}

.booth-kpi-item {
  white-space: nowrap;
}

.color-green {
  color: #15803d;
}

.color-amber {
  color: #b45309;
}

/* Booth Actions Row (100% Mobile Safe) */
.dash-booth-actions-row {
  display: flex;
  gap: 5px;
  width: 100%;
  box-sizing: border-box;
  margin-top: 2px;
}

.btn-booth-action {
  flex: 1 1 0;
  min-width: 0;
  height: 30px;
  padding: 0 4px;
  font-size: 11.5px;
  font-weight: 650;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  transition: all 0.15s ease;
}

.btn-filter-booth {
  border-color: #86efac;
  color: #166534;
  background: #f0fdf4;
}

.btn-filter-booth:hover {
  background: #dcfce7;
}

.btn-active-booth {
  border-color: #fca5a5;
  color: #991b1b;
  background: #fef2f2;
}

.btn-desk-booth {
  border-color: #bae6fd;
  color: #0369a1;
  background: #f0f9ff;
}

.btn-desk-booth:hover {
  background: #e0f2fe;
}

.btn-wa-booth {
  border-color: #86efac;
  color: #15803d;
  background: #f0fdf4;
}

.btn-wa-booth:hover {
  background: #dcfce7;
}

/* ── 6. ACTIONABLE FOLLOW-UP DESK ── */
.dash-followup-card {
  padding: 14px 14px;
}

.dash-followup-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.followup-tab-btn {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}

.followup-tab-btn:hover {
  color: var(--ink);
  border-color: #94a3b8;
}

.followup-tab-btn.active {
  background: #195d4a;
  color: #ffffff;
  border-color: #195d4a;
}

.dash-followup-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.followup-select {
  flex: 0 1 180px;
  min-width: 140px;
  height: 34px;
  font-size: 12.5px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}

.followup-search {
  flex: 1 1 200px;
  min-width: 150px;
  height: 34px;
  font-size: 12.5px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}

.dash-followup-count-bar {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

/* Table styles */
.dash-table-wrap {
  overflow-x: auto;
  overflow-y: auto;
  max-height: 520px;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  width: 100%;
  background: #ffffff;
}

.dash-followup-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 11.5px;
  line-height: 1.15;
  text-align: left;
  margin: 0;
}

.dash-followup-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #cbd5e1 !important;
  padding: 5px 6px !important;
  font-size: 11px;
  font-weight: 800;
  color: #0f172a;
  border-bottom: 1.5px solid #94a3b8;
  border-right: 1px solid #94a3b8;
  white-space: nowrap;
}

.dash-followup-table th:last-child {
  border-right: none;
}

.dash-followup-table td {
  padding: 2px 6px !important;
  height: 25px;
  border-bottom: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  vertical-align: middle;
  background: #ffffff !important;
  white-space: nowrap;
}

.dash-followup-table tbody tr:nth-child(even) td {
  background: #f1f5f9 !important;
}

.dash-followup-table td:last-child {
  border-right: none;
}

.dash-followup-table th.col-center,
.dash-followup-table td.col-center {
  text-align: center;
}

.dash-followup-table tbody tr:hover td {
  background: #e0e7ff !important;
}

.dash-followup-table tbody tr.row-attended td {
  background: #dcfce7 !important;
}

.dash-followup-table tbody tr.row-attended:nth-child(even) td {
  background: #bbf7d0 !important;
}

.dash-followup-table tbody tr.row-status-marked td {
  background: #e0f2fe !important;
}

.dash-followup-table tbody tr.row-status-marked:nth-child(even) td {
  background: #bae6fd !important;
}

/* Compact 18x18 tick/untick checkbox inside table */
.dash-followup-table .btn-tick-box {
  width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  min-width: 18px !important;
  border-radius: 4px;
  border: 1.5px solid #64748b;
  background: #ffffff;
  color: #ffffff;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0 !important;
  margin: 0 !important;
  transition: all 0.1s ease;
}

.dash-followup-table .btn-tick-box:hover {
  border-color: #16a34a;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.15);
}

.dash-followup-table .btn-tick-box.is-checked.tick-green {
  background: #15803d;
  border-color: #15803d;
  color: #ffffff;
}

.dash-followup-table .btn-tick-box.is-checked.tick-blue {
  background: #0369a1;
  border-color: #0369a1;
  color: #ffffff;
}

.dash-followup-table .btn-tick-box.is-checked.tick-sky {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
}

.voter-serial-chip {
  display: inline-block;
  background: #e2e8f0;
  color: #0f172a;
  font-weight: 750;
  font-size: 10.5px;
  padding: 1px 4px;
  border-radius: 3px;
  font-family: ui-monospace, monospace;
}

.dash-voter-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
}

.dash-voter-rel {
  font-size: 11px;
  line-height: 1.15;
}

.dash-voter-epic {
  font-size: 11px;
  color: var(--ink);
  line-height: 1.15;
}

.dash-voter-epic code {
  background: #e2e8f0;
  color: #0f172a;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 10.5px;
}

/* 1-Column Grid for Gender | Age */
.dash-gender-age-grid {
  display: inline-grid;
  grid-template-columns: 28px 26px;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #ffffff;
  overflow: hidden;
  font-size: 10.5px;
  line-height: 1.2;
}

.dash-gender-age-grid .ga-gender {
  padding: 1px 2px;
  font-weight: 700;
  color: #334155;
  background: #f8fafc;
  border-right: 1px solid #cbd5e1;
  text-align: center;
}

.dash-gender-age-grid .ga-age {
  padding: 1px 2px;
  font-weight: 750;
  color: #0f172a;
  text-align: center;
}

/* Compact inline phone input + trending Pen/Tick icon button */
.dash-phone-cell {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.dash-phone-num {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
  color: #0369a1;
  text-decoration: none;
  padding: 0 2px;
}

.dash-phone-num:hover {
  text-decoration: underline;
}

.dash-phone-input {
  width: 86px !important;
  height: 20px !important;
  min-height: 20px !important;
  padding: 0 4px !important;
  margin: 0 !important;
  font-size: 11px !important;
  font-family: ui-monospace, monospace;
  border: 1px solid #94a3b8 !important;
  border-radius: 3px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  outline: none;
}

.dash-phone-input:focus {
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 1.5px rgba(2, 132, 199, 0.2);
}

.dash-followup-table .btn-ico-mini {
  width: 20px !important;
  height: 20px !important;
  min-height: 20px !important;
  min-width: 20px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  transition: all 0.12s ease;
}

.dash-followup-table .btn-ico-pen:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #64748b;
}

.dash-followup-table .btn-ico-tick {
  background: #15803d;
  border-color: #15803d;
  color: #ffffff;
}

.dash-followup-table .btn-ico-tick:hover {
  background: #166534;
}

.dash-followup-table .btn-ico-wa {
  background: #dcfce7;
  border-color: #86efac;
  color: #15803d;
  font-size: 10px;
  font-weight: 800;
}

.dash-followup-table .btn-view-slip {
  width: 20px !important;
  height: 20px !important;
  min-height: 20px !important;
  min-width: 20px !important;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 4px;
  cursor: pointer;
  font-size: 10.5px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dash-followup-pag {
  display: none !important;
}

/* ── 7. RESPONSIVE DASHBOARD LAYOUT ── */
@media(max-width: 820px) {
  .dash-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .dash-monitor-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .dash-booth-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media(max-width: 540px) {
  .dash-panel {
    padding: 10px 10px 20px;
    gap: 10px;
  }

  .dash-command-header {
    padding: 10px 12px;
  }

  .dash-stat-num {
    font-size: 20px;
  }

  .dash-stat-card {
    padding: 8px 10px;
  }

  .dash-followup-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .followup-select,
  .followup-search {
    width: 100%;
    flex: auto;
  }

  .dash-booth-actions-row {
    gap: 4px;
  }

  .btn-booth-action {
    font-size: 11px;
    height: 28px;
  }
}

/* ── SMART COMPACT AUTOCOMPLETE MATCHING SUGGESTIONS ── */
.finder-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 40;
  margin-top: 4px;
  max-height: 240px;
  overflow-y: auto;
  border: 1.5px solid #0f766e;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
}

.central-sugg-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid #f1f5f9;
  border-radius: 0;
  padding: 6px 10px;
  background: #fff;
  cursor: pointer;
  transition: background .12s ease;
}

.central-sugg-item:last-child {
  border-bottom: 0;
}

.central-sugg-item:hover,
.central-sugg-item[aria-selected="true"] {
  background: #f0fdf4 !important;
}

.sugg-simple-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.sugg-simple-serial {
  font-weight: 750;
  color: #0f766e;
  font-size: 13px;
  flex-shrink: 0;
  min-width: 44px;
}

.sugg-simple-name {
  flex: 1;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13.5px;
  font-weight: 550;
}

.sugg-simple-epic {
  font-family: monospace;
  font-weight: 700;
  color: #475569;
  font-size: 11.5px;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .finder-suggestions {
    max-height: 200px;
  }

  .central-sugg-item {
    padding: 5px 8px;
  }

  .sugg-name-text {
    font-size: 13px;
  }
}

/* ── PROMINENT BIGGER WARD & BOOTH BADGES & ATTENDANCE ACTION ── */
.voter-card-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid #e2e8f0;
  background: #fafbf9;
  margin: -18px -20px 14px -20px;
  padding: 14px 20px 12px 20px;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}

.voter-key-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.badge-xl {
  font-size: 14.5px;
  font-weight: 750;
  padding: 6px 14px;
  border-radius: 8px;
  letter-spacing: .01em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge-ward-xl {
  background: #e0f2fe;
  color: #0369a1;
  border: 1.5px solid #bae6fd;
}

.badge-booth-xl {
  background: #fef3c7;
  color: #92400e;
  border: 1.5px solid #fde68a;
}

.badge-serial-xl {
  background: #f3e8ff;
  color: #6b21a8;
  border: 1.5px solid #e9d5ff;
}

.badge-ac-xl {
  background: #f1f5f9;
  color: #334155;
  border: 1.5px solid #cbd5e1;
  font-family: ui-monospace, monospace;
  font-size: 13px;
}

.badge-ps-xl {
  background: #f8fafc;
  color: #1e293b;
  border: 1.5px solid #cbd5e1;
  font-size: 13.5px;
  font-weight: 650;
  max-width: 480px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── ATTENDANCE ACTION IN HEADER ── */
.voter-card-attend-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.btn-mark-attended-main {
  font-size: 14.5px;
  font-weight: 750;
  padding: 8px 18px;
  border-radius: 8px;
  background: #15803d;
  color: #ffffff;
  border: 1.5px solid #166534;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 6px rgba(21, 128, 61, 0.25);
  transition: transform .1s, background .15s, box-shadow .15s;
}

.btn-mark-attended-main:hover {
  background: #166534;
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.35);
  transform: translateY(-1px);
}

.btn-mark-attended-main:active {
  transform: scale(.98);
}

.btn-mark-attended-main:disabled {
  opacity: .6;
  cursor: wait;
}

.btn-revert-attended-main {
  font-size: 14.5px;
  font-weight: 750;
  padding: 8px 18px;
  border-radius: 8px;
  background: #dc2626;
  color: #ffffff;
  border: 1.5px solid #b91c1c;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25);
  transition: transform .1s, background .15s, box-shadow .15s;
}

.btn-revert-attended-main:hover {
  background: #b91c1c;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
  transform: translateY(-1px);
}

.btn-revert-attended-main:active {
  transform: scale(.98);
}

.btn-revert-attended-main:disabled {
  opacity: .6;
  cursor: wait;
}

/* ── CONFIRMATION MODAL (YES/NO ATTENDANCE CONFIRM & REVERT) ── */
.attend-confirm-dialog {
  max-width: 440px;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
  border: 1px solid #cbd5e1;
}

.attend-confirm-body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.attend-voter-summary-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
}

.attend-summary-name {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
  line-height: 1.25;
}

.attend-summary-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.summary-pill {
  font-size: 12px;
  font-weight: 700;
  background: #e2e8f0;
  color: #334155;
  padding: 3px 8px;
  border-radius: 5px;
  letter-spacing: .01em;
}

.attend-confirm-msg {
  font-size: 14px;
  color: #334155;
  line-height: 1.45;
  margin: 0;
  font-weight: 500;
}

.attend-confirm-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 20px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.btn-modal-success {
  background: #15803d;
  color: #ffffff;
  border: 1.5px solid #166534;
  font-size: 14px;
  font-weight: 750;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(21, 128, 61, 0.25);
  transition: all .15s ease;
}

.btn-modal-success:hover {
  background: #166534;
  transform: translateY(-1px);
}

.btn-modal-danger {
  background: #dc2626;
  color: #ffffff;
  border: 1.5px solid #b91c1c;
  font-size: 14px;
  font-weight: 750;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25);
  transition: all .15s ease;
}

.btn-modal-danger:hover {
  background: #b91c1c;
  transform: translateY(-1px);
}

.attend-confirmed-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #dcfce7;
  border: 1.5px solid #86efac;
  padding: 7px 15px;
  border-radius: 8px;
}

.attend-pill-tag {
  color: #15803d;
  font-weight: 750;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-undo-compact {
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-undo-compact:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* ── VOTER SLIP PRESENTATION ── */
.voter-slip-img-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.voter-slip-img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  background: #faf9f5;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform .15s, box-shadow .15s;
}

.voter-slip-img:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.voter-slip-hint {
  font-size: 11.5px;
  color: var(--muted);
  text-align: center;
  cursor: pointer;
  font-weight: 600;
  padding: 2px 0;
}

.voter-slip-hint:hover {
  color: var(--green);
  text-decoration: underline;
}

/* ── TITLE ROW: VOTER NAME (PRIMARY) & COMPACT VISIBLE VOTER ID (RIGHT) ── */
.voter-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.voter-name-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  flex: 1 1 auto;
}

.voter-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
  line-height: 1.25;
}

.voter-epic-compact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fefce8;
  border: 1.5px solid #fde047;
  border-radius: 8px;
  padding: 6px 14px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}

.epic-compact-lbl {
  font-size: 12.5px;
  font-weight: 700;
  color: #854d0e;
  white-space: nowrap;
}

.epic-compact-val {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 17px;
  font-weight: 850;
  color: #713f12;
  letter-spacing: 0.06em;
}

.btn-copy-id {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12.5px;
  padding: 3px 7px;
  transition: background .15s;
}

.btn-copy-id:hover {
  background: #fef08a;
}

.badge-phone-val {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  padding: 2px 8px;
  border-radius: 5px;
  letter-spacing: .02em;
}

.btn-quick-call {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #0369a1;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  padding: 3px 9px;
  border-radius: 5px;
  text-decoration: none;
}

.btn-quick-call:hover {
  background: #bae6fd;
}

.btn-quick-wa {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #15803d;
  background: #dcfce7;
  border: 1px solid #86efac;
  padding: 3px 9px;
  border-radius: 5px;
  text-decoration: none;
}

.btn-quick-wa:hover {
  background: #bbf7d0;
}

.voter-phone-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* ── RESPONSIVE AUTO-SIZE & AUTO-ALIGN (TABLET & MOBILE) ── */
@media(max-width:900px) {
  .voter-card-body {
    grid-template-columns: 210px 1fr;
    gap: 16px;
  }

  .badge-ps-xl {
    max-width: 340px;
  }
}

@media(max-width:768px) {
  .voter-card {
    padding: 14px 16px;
  }

  .voter-card-top-bar {
    flex-direction: column;
    align-items: stretch;
    margin: -14px -16px 14px -16px;
    padding: 12px 14px;
    gap: 10px;
  }

  .voter-key-pills {
    width: 100%;
    justify-content: flex-start;
  }

  .badge-ps-xl {
    max-width: 100%;
    white-space: normal;
  }

  .voter-card-attend-action {
    margin-left: 0;
    width: 100%;
  }

  .btn-mark-attended-main,
  .btn-revert-attended-main {
    width: 100%;
    justify-content: center;
    min-height: 46px;
    font-size: 15px;
  }

  .attend-confirmed-pill {
    width: 100%;
    justify-content: space-between;
    min-height: 44px;
  }

  .voter-card-body {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .voter-slip-col {
    align-items: center;
  }

  .voter-slip-img {
    max-height: 190px;
    width: auto;
    max-width: 100%;
  }

  .voter-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .voter-epic-compact {
    width: 100%;
    justify-content: space-between;
  }

  .voter-meta-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .voter-actions-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .btn-action {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13.5px;
    padding: 8px 12px;
  }
}

@media(max-width:480px) {
  .voter-card {
    padding: 12px;
  }

  .voter-card-top-bar {
    margin: -12px -12px 12px -12px;
    padding: 10px 12px;
  }

  .badge-xl {
    font-size: 13px;
    padding: 4px 10px;
  }

  .voter-name {
    font-size: 18px;
  }

  .epic-compact-val {
    font-size: 15px;
  }

  .voter-actions-bar {
    grid-template-columns: 1fr;
  }
}

/* ── WHATSAPP SHARE POPUP MODAL ── */
.wa-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: waFadeIn .18s ease-out;
}

@keyframes waFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.wa-modal-dialog {
  background: #ffffff;
  border-radius: 14px;
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
  border: 1px solid #cbd5e1;
  overflow: hidden;
  animation: waScaleUp .2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes waScaleUp {
  from {
    transform: scale(0.95);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.wa-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.wa-modal-header h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 750;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wa-modal-close {
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #64748b;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}

.wa-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.wa-modal-body {
  padding: 18px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.wa-slip-preview-card {
  display: flex;
  gap: 14px;
  padding: 12px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  align-items: center;
}

.wa-preview-img-wrap {
  flex: 0 0 115px;
  text-align: center;
}

.wa-preview-slip-img {
  max-width: 115px;
  max-height: 105px;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #fff;
  cursor: pointer;
  transition: transform .15s;
}

.wa-preview-slip-img:hover {
  transform: scale(1.03);
}

.wa-preview-info {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13.5px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.wa-preview-name {
  font-size: 16px;
  font-weight: 750;
  color: #0f172a;
  line-height: 1.25;
}

.wa-preview-meta {
  color: #475569;
  font-size: 13px;
}

.wa-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wa-label {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
}

.wa-phone-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wa-country-badge {
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  padding: 0 12px;
  height: 44px;
  display: flex;
  align-items: center;
  border-radius: 8px;
}

.wa-phone-input {
  flex: 1;
  height: 44px;
  padding: 0 14px;
  font-size: 15px;
  font-weight: 600;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-family: ui-monospace, monospace;
  letter-spacing: 0.04em;
  transition: border-color .15s, box-shadow .15s;
}

.wa-phone-input:focus {
  outline: none;
  border-color: #25d366;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.2);
}

.wa-phone-ok-btn {
  height: 44px;
  padding: 0 14px;
  background: #15803d;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 800;
  border: 1.5px solid #166534;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, transform .1s;
  flex-shrink: 0;
}

.wa-phone-ok-btn:hover {
  background: #166534;
}

.wa-phone-ok-btn:active {
  transform: scale(0.97);
}

.wa-phone-ok-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.wa-autofill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #15803d;
  font-weight: 650;
  background: #f0fdf4;
  padding: 3px 8px;
  border-radius: 5px;
  border: 1px solid #bbf7d0;
  align-self: flex-start;
}

.wa-autofill-empty {
  font-size: 12px;
  color: #64748b;
}

.wa-msg-textarea {
  width: 100%;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
  font-family: inherit;
  color: #334155;
  resize: vertical;
  min-height: 85px;
  box-sizing: border-box;
}

.wa-msg-textarea:focus {
  outline: none;
  border-color: #25d366;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.2);
}

.wa-info-tip {
  font-size: 12.5px;
  color: #334155;
  background: #f0fdf4;
  border-left: 3.5px solid #22c55e;
  padding: 9px 13px;
  border-radius: 6px;
  line-height: 1.4;
}

.wa-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.wa-modal-footer button {
  min-height: 42px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .15s ease;
}

.wa-btn-cancel {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #475569;
}

.wa-btn-cancel:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.wa-btn-send {
  background: #25d366;
  border: 1.5px solid #20ba5a;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.35);
}

.wa-btn-send:hover {
  background: #1ebd5b;
  transform: translateY(-1px);
}

.wa-btn-send:active {
  transform: translateY(0);
}

.btn-copy-slip-img {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-copy-slip-img:hover {
  background: #f1f5f9;
}

@media(max-width:540px) {
  .wa-modal-dialog {
    width: 100%;
    border-radius: 12px;
  }

  .wa-slip-preview-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .wa-preview-img-wrap {
    width: 100%;
    text-align: center;
  }

  .wa-preview-slip-img {
    max-width: 160px;
    max-height: 130px;
  }

  .wa-modal-footer {
    flex-direction: column-reverse;
  }

  .wa-modal-footer button {
    width: 100%;
    justify-content: center;
  }
}

/* ── WHATSAPP QR CONNECTION CARD IN SETTINGS ── */
.whatsapp-qr-container {
  margin-top: 16px;
  max-width: 480px;
}

.wa-qr-card {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.wa-status-pill {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

.wa-status-pill.connecting {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.wa-status-pill.ready {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.wa-qr-frame {
  width: 260px;
  height: 260px;
  margin: 0 auto 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  overflow: hidden;
}

.wa-qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wa-spinner {
  width: 38px;
  height: 38px;
  border: 3px solid #cbd5e1;
  border-top-color: #25d366;
  border-radius: 50%;
  animation: waSpin .8s linear infinite;
}

@keyframes waSpin {
  to {
    transform: rotate(360deg);
  }
}

.wa-qr-instructions {
  text-align: left;
  background: #f8fafc;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  font-size: 13px;
}

.wa-qr-instructions h4 {
  margin: 0 0 6px;
  font-size: 13.5px;
  color: #0f172a;
}

.wa-qr-instructions ol {
  margin: 0;
  padding-left: 18px;
  line-height: 1.5;
  color: #475569;
}

.wa-connected-card {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 12px;
  padding: 22px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(22, 101, 52, 0.08);
}

.wa-connected-badge {
  display: inline-block;
  background: #15803d;
  color: #ffffff;
  font-size: 13px;
  font-weight: 750;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.wa-connected-card h4 {
  margin: 4px 0 6px;
  font-size: 18px;
  color: #14532d;
}

.wa-connected-details {
  margin-top: 14px;
  background: #ffffff;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 12px 16px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

.wa-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wa-detail-item .lbl {
  color: #64748b;
  font-weight: 600;
}

.wa-account-status-bar {
  padding: 9px 13px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.wa-account-status-bar.connected {
  background: #f0fdf4;
  border-color: #86efac;
  color: #14532d;
}

.wa-account-status-bar.disconnected {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.btn-small-link {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  cursor: pointer;
  color: #0f172a;
}

.btn-small-link:hover {
  background: #f1f5f9;
}

/* ── USER & ROLE PERMISSIONS MANAGEMENT (INDEPENDENT SCREEN) ── */
.user-manage-box {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.user-manage-box h4 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #0f172a;
}

.user-form-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 14px;
}

.form-section-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
}

.form-section-title {
  font-size: 14px;
  font-weight: 750;
  color: #0f172a;
  margin-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 6px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.check-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.check-card:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.check-card input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}

.check-card strong {
  display: block;
  font-size: 13.5px;
  color: #0f172a;
}

.check-card small {
  display: block;
  font-size: 11.5px;
  color: #64748b;
  margin-top: 2px;
  line-height: 1.3;
}

.assigned-pills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.assigned-ward-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 13px;
  color: #0369a1;
}

.btn-remove-pill {
  background: #ffffff;
  border: 1px solid #93c5fd;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  color: #ef4444;
  line-height: 1;
  padding: 0;
}

.btn-remove-pill:hover {
  background: #fee2e2;
  border-color: #fca5a5;
}

.status-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: capitalize;
}

.status-tag.approved {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.status-tag.pending {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.status-tag.blocked {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}


/* =====================================================================
   MOBILE-FIRST HIGH-DENSITY REDESIGN (STITCH FIELD SLIP DESK)
   - Fluid auto-sizing with relative units, clamp(), and container queries
   - Safe-area-inset handling for notches and home indicators
   - Input font-size >= 16px to prevent unwanted iOS auto-zoom
   - Thumb-accessible pinned bottom navigation dock (< 768px)
   - Ultra-compact 165px voter cards (2-3 cards per viewport)
   - High-density Polling Flow & Booth Breakdown Status Matrix
   ===================================================================== */

:root {
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --keyboard-offset: 0px;
}

/* Force 16px minimum on all inputs to eliminate iOS zoom */
@media screen and (max-width: 768px) {

  input,
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* ── BOTTOM DOCK HIDDEN: USING UNIFIED TOP SEGMENTED BAR ── */
.mobile-bottom-nav {
  display: none !important;
}

@media screen and (max-width: 768px) {
  .mobile-bottom-nav {
    display: none !important;
  }

  main {
    padding-bottom: 24px !important;
  }

  .mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 52px;
    background: transparent;
    border: none;
    padding: 4px 0;
    color: #64748b;
    cursor: pointer;
    touch-action: manipulation;
    text-decoration: none;
    transition: color 0.15s ease, background 0.15s ease;
  }

  .mobile-nav-item:active {
    background: #f1f5f9;
  }

  .mob-nav-icon {
    stroke: currentColor;
    margin-bottom: 2px;
  }

  .mob-nav-label {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.1;
  }

  .mobile-nav-item.active {
    color: #0284c7;
  }

  .mobile-nav-item.active .mob-nav-icon {
    stroke-width: 2.4;
  }

  /* Mobile Segmented Work Module Selector */
  .dash-tab-bar {
    display: flex !important;
    gap: 3px !important;
    padding: 3px !important;
    background: #f1f5f9 !important;
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
    margin: 4px 6px 8px !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 95 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    width: calc(100% - 12px) !important;
    box-sizing: border-box !important;
  }

  .dash-tab-bar::-webkit-scrollbar {
    display: none !important;
  }

  .dash-tab {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    width: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    padding: 6px 2px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    border-radius: 7px !important;
    background: transparent !important;
    border: none !important;
    color: #475569 !important;
    min-height: 36px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    transition: all 0.15s ease !important;
  }

  .dash-tab .tab-ico {
    font-size: 13px !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
  }

  .dash-tab .tab-txt {
    font-size: 11px !important;
    font-weight: 750 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    letter-spacing: -0.01em !important;
  }

  .dash-tab.tab-theme-voters.active {
    background: #0284c7 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.35) !important;
  }

  .dash-tab.tab-theme-voters.active .tab-txt {
    color: #ffffff !important;
  }

  .dash-tab.tab-theme-dashboard.active {
    background: #0d9488 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(13, 148, 136, 0.35) !important;
  }

  .dash-tab.tab-theme-dashboard.active .tab-txt {
    color: #ffffff !important;
  }

  .dash-tab.tab-theme-upload.active {
    background: #7c3aed !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.35) !important;
  }

  .dash-tab.tab-theme-upload.active .tab-txt {
    color: #ffffff !important;
  }

  .dash-tab.tab-theme-settings.active {
    background: #ea580c !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(234, 88, 12, 0.35) !important;
  }

  .dash-tab.tab-theme-settings.active .tab-txt {
    color: #ffffff !important;
  }

  @media screen and (max-width: 380px) {
    .dash-tab {
      padding: 5px 1px !important;
      gap: 2px !important;
    }

    .dash-tab .tab-ico {
      font-size: 12px !important;
    }

    .dash-tab .tab-txt {
      font-size: 10px !important;
    }
  }

  /* Actionable Polling Workspaces Launch Hub */
  .dash-voter-launch-hub {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%) !important;
    border: 1.5px solid #86efac !important;
    border-radius: 10px !important;
    padding: 12px 14px !important;
    margin: 8px 0 !important;
  }

  .dash-launch-title {
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #15803d !important;
  }

  .dash-launch-desc {
    font-size: 11.5px !important;
    color: #334155 !important;
    margin-top: 2px !important;
  }

  .btn-launch-voter-desk {
    background: #15803d !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 800 !important;
    font-size: 13.5px !important;
    padding: 9px 14px !important;
    border-radius: 8px !important;
    min-height: 42px !important;
    box-shadow: 0 2px 5px rgba(21, 128, 61, 0.3) !important;
    cursor: pointer !important;
    width: 100% !important;
    text-align: center !important;
  }

  .dash-inline-voters-toggle {
    margin-top: 8px !important;
    border: 1px dashed #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 6px 10px !important;
  }

  .dash-inline-summary {
    cursor: pointer !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #0284c7 !important;
    padding: 4px 0 !important;
  }

  /* Compact top masthead on mobile: strictly ONE ROW */
  .masthead {
    padding: calc(6px + var(--sat)) 12px 6px !important;
    min-height: 48px !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
  }

  .brand {
    font-size: 15px !important;
    gap: 6px !important;
    white-space: nowrap !important;
    flex-shrink: 1 !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .brand svg {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
  }

  #identity {
    gap: 6px !important;
    flex-wrap: nowrap !important;
    flex-shrink: 0 !important;
  }

  #volunteer-name {
    font-size: 12.5px !important;
    max-width: 80px !important;
  }

  .masthead #identity button,
  .masthead-icon-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .masthead-icon-btn svg {
    width: 17px !important;
    height: 17px !important;
  }

  .module-header {
    padding: 10px 14px !important;
    margin-bottom: 8px !important;
  }

  .module-header h1 {
    font-size: 18px !important;
  }
}

/* ── ULTRA-COMPACT HIGH-DENSITY VOTER CARDS (MOBILE < 768px) ── */
@media screen and (max-width: 768px) {
  .voter-cards-grid {
    gap: 10px !important;
    margin: 8px 0 !important;
  }

  .voter-card {
    padding: 10px 12px !important;
    border-radius: 8px !important;
    border: 1.5px solid #cbd5e1 !important;
    background: #ffffff !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
  }

  .voter-card-top-bar {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    padding-bottom: 8px !important;
    margin-bottom: 8px !important;
    border-bottom: 1px solid #f1f5f9 !important;
  }

  .voter-key-pills {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    align-items: center !important;
  }

  .badge-xl {
    font-size: 11px !important;
    padding: 3px 7px !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
  }

  .badge-serial-xl {
    background: #0f172a !important;
    color: #ffffff !important;
  }

  .badge-ward-xl,
  .badge-booth-xl {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border: 1px solid #e2e8f0 !important;
  }

  .badge-ps-xl,
  .badge-ac-xl {
    display: none !important;
    /* Hide secondary headers on compact mobile */
  }

  .badge-attended {
    background: #dcfce7 !important;
    color: #15803d !important;
    border: 1px solid #86efac !important;
  }

  .badge-unmarked {
    background: #fef3c7 !important;
    color: #b45309 !important;
    border: 1px solid #fde68a !important;
  }

  /* Side-by-side flex layout: 62px thumbnail on left, data on right */
  .voter-card-body {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    align-items: flex-start !important;
  }

  .voter-slip-col {
    flex-shrink: 0 !important;
    width: 64px !important;
  }

  .voter-slip-img-wrap {
    width: 64px !important;
    height: 82px !important;
    position: relative !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    border: 1.5px solid #cbd5e1 !important;
    background: #f8fafc !important;
  }

  .voter-slip-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    max-height: none !important;
  }

  .voter-slip-hint {
    display: none !important;
  }

  .voter-no-slip {
    width: 64px !important;
    height: 82px !important;
    font-size: 10px !important;
    padding: 4px !important;
    border-radius: 6px !important;
  }

  .voter-info-col {
    flex: 1 !important;
    min-width: 0 !important;
  }

  .voter-title-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: baseline !important;
    gap: 6px !important;
    margin-bottom: 4px !important;
  }

  .voter-name {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    line-height: 1.25 !important;
    margin: 0 !important;
  }

  .sugg-latin {
    font-size: 12px !important;
    color: #64748b !important;
    font-weight: 500 !important;
    margin-left: 4px !important;
  }

  /* High-Contrast EPIC ID Badge */
  .voter-epic-compact {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    background: #0f172a !important;
    color: #ffffff !important;
    padding: 2px 7px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em !important;
    flex-shrink: 0 !important;
  }

  .epic-compact-lbl {
    display: none !important;
  }

  .epic-compact-val {
    color: #ffffff !important;
  }

  .btn-copy-id {
    color: #cbd5e1 !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    min-height: auto !important;
    font-size: 11px !important;
    cursor: pointer !important;
  }

  /* Compact field grid */
  .voter-meta-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    margin-top: 4px !important;
    font-size: 12.5px !important;
  }

  .voter-field {
    display: flex !important;
    align-items: baseline !important;
    gap: 4px !important;
    line-height: 1.3 !important;
  }

  .voter-field .field-lbl {
    color: #64748b !important;
    font-size: 11.5px !important;
    font-weight: 500 !important;
    flex-shrink: 0 !important;
  }

  .voter-field .field-val {
    color: #1e293b !important;
    font-weight: 600 !important;
  }

  .badge-house {
    background: #f1f5f9 !important;
    padding: 1px 5px !important;
    border-radius: 3px !important;
    border: 1px solid #e2e8f0 !important;
  }

  /* Single-row bottom action toolbar */
  .voter-actions-bar {
    display: flex !important;
    gap: 6px !important;
    align-items: center !important;
    margin-top: 8px !important;
    padding-top: 8px !important;
    border-top: 1px solid #f1f5f9 !important;
  }

  .voter-actions-bar .btn-action {
    flex: 1 !important;
    min-height: 38px !important;
    padding: 6px 10px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
  }

  .btn-action-whatsapp {
    background: #f0fdf4 !important;
    color: #15803d !important;
    border-color: #86efac !important;
  }

  .btn-action-print,
  .btn-action-download {
    background: #f8fafc !important;
    color: #334155 !important;
    border-color: #cbd5e1 !important;
  }

  .btn-mark-attended-main,
  .btn-revert-attended-main {
    min-height: 40px !important;
    font-size: 13px !important;
    padding: 8px 14px !important;
    border-radius: 6px !important;
  }
}

/* ── HOURLY PROGRESSION & BOOTH MATRIX ENHANCEMENTS (DASHBOARD) ── */
.dash-hourly-flow-card {
  padding: 16px 18px !important;
}

.dash-hourly-subtitle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 6px 0 14px;
}

.hourly-status-pill {
  display: inline-flex;
  align-items: center;
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #86efac;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
}

.dash-hourly-timeline-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 12px 8px 8px;
}

.hourly-slot-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hourly-slot-bar-wrap {
  width: 100%;
  height: 64px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 6px;
}

.hourly-bar-count {
  font-size: 10.5px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 2px;
}

.hourly-slot-bar {
  width: 16px;
  min-height: 4px;
  border-radius: 3px 3px 0 0;
  transition: height 0.3s ease;
}

.hourly-slot-label {
  font-size: 10.5px;
  font-weight: 700;
  color: #334155;
  white-space: nowrap;
}

.hourly-slot-te {
  font-size: 9.5px;
  color: #64748b;
  margin-top: 1px;
}

.hourly-slot-cumul {
  font-size: 10px;
  font-weight: 800;
  color: #15803d;
  background: #dcfce7;
  padding: 1px 4px;
  border-radius: 3px;
  margin-top: 4px;
}

@media screen and (max-width: 600px) {
  .dash-hourly-timeline-grid {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 12px;
  }
}

/* ── BOOTH BREAKDOWN STATUS MATRIX ── */
.booth-status-matrix-card {
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  padding: 14px !important;
}

.booth-matrix-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #ffffff;
  margin-bottom: 8px;
  transition: border-color 0.15s ease;
}

.booth-matrix-row:hover,
.booth-matrix-row.is-active {
  border-color: #0284c7;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.08);
}

.booth-matrix-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.booth-matrix-badge {
  background: #0f172a;
  color: #ffffff;
  font-weight: 800;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
}

.booth-turnout-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
}

.booth-turnout-pill.high {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.booth-turnout-pill.medium {
  background: #e0f2fe;
  color: #0284c7;
  border: 1px solid #bae6fd;
}

.booth-turnout-pill.low {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.booth-matrix-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #334155;
}

.booth-matrix-actions {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.booth-matrix-actions button {
  flex: 1;
  min-height: 34px !important;
  font-size: 11.5px !important;
  padding: 4px 8px !important;
  border-radius: 5px !important;
}


/* =====================================================================
   BROWSER MOBILE-VIEW SIMULATOR & ADAPTIVE SHELL
   Allows users to use the exact mobile screen experience on desktop!
   Activated when viewport < 768px OR when .force-mobile-view is active
   ===================================================================== */

.btn-mode-toggle {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 6px;
  padding: 5px 12px;
  margin-right: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-mode-toggle:hover {
  background: #e2e8f0;
}

.btn-mode-toggle.is-active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0369a1;
}

/* Force Mobile Screen Simulation on Desktop */
body.force-mobile-view {
  background: #e2e8f0 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: flex-start !important;
  min-height: 100vh !important;
  padding: 24px 0 !important;
}

body.force-mobile-view .masthead,
body.force-mobile-view main,
body.force-mobile-view .mobile-bottom-nav {
  max-width: 440px !important;
  width: 100% !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}

body.force-mobile-view .masthead {
  border-radius: 16px 16px 0 0 !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.15) !important;
}

body.force-mobile-view main {
  background: #f8fafc !important;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12) !important;
  min-height: calc(100vh - 48px) !important;
  border-left: 1px solid #cbd5e1 !important;
  border-right: 1px solid #cbd5e1 !important;
  padding: 14px 12px calc(72px + var(--sab)) !important;
}

body.force-mobile-view .mobile-bottom-nav {
  display: flex !important;
  position: fixed !important;
  bottom: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  max-width: 440px !important;
  width: 100% !important;
  border-radius: 0 0 16px 16px !important;
}

body.force-mobile-view .dash-tab-bar {
  display: flex !important;
  gap: 4px !important;
  padding: 4px !important;
  background: #f1f5f9 !important;
  border-radius: 10px !important;
  border: 1px solid #e2e8f0 !important;
  margin: 4px 6px 8px !important;
}

body.force-mobile-view .dash-tab {
  flex: 1 1 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  padding: 6px 2px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  border-radius: 7px !important;
  background: transparent !important;
  border: none !important;
  color: #475569 !important;
  min-height: 36px !important;
}

body.force-mobile-view .dash-tab .tab-ico {
  font-size: 14px !important;
}

body.force-mobile-view .dash-tab .tab-txt {
  font-size: 11.5px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}

body.force-mobile-view .dash-tab.active {
  background: #0284c7 !important;
  color: #ffffff !important;
  box-shadow: 0 1px 4px rgba(2, 132, 199, 0.3) !important;
}

body.force-mobile-view .dash-tab.active .tab-txt {
  color: #ffffff !important;
}

/* Apply Mobile Styles when .force-mobile-view is active */
body.force-mobile-view .voter-cards-grid {
  gap: 10px !important;
  margin: 8px 0 !important;
}

body.force-mobile-view .voter-card {
  padding: 10px 12px !important;
  border-radius: 8px !important;
  border: 1.5px solid #cbd5e1 !important;
  background: #ffffff !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
}

body.force-mobile-view .voter-card-top-bar {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 6px !important;
  padding-bottom: 8px !important;
  margin-bottom: 8px !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

body.force-mobile-view .voter-key-pills {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 4px !important;
  align-items: center !important;
}

body.force-mobile-view .badge-xl {
  font-size: 11px !important;
  padding: 3px 7px !important;
  border-radius: 4px !important;
  font-weight: 700 !important;
}

body.force-mobile-view .badge-serial-xl {
  background: #0f172a !important;
  color: #ffffff !important;
}

body.force-mobile-view .badge-ward-xl,
body.force-mobile-view .badge-booth-xl {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border: 1px solid #e2e8f0 !important;
}

body.force-mobile-view .badge-ps-xl,
body.force-mobile-view .badge-ac-xl {
  display: none !important;
}

body.force-mobile-view .badge-attended {
  background: #dcfce7 !important;
  color: #15803d !important;
  border: 1px solid #86efac !important;
}

body.force-mobile-view .badge-unmarked {
  background: #fef3c7 !important;
  color: #b45309 !important;
  border: 1px solid #fde68a !important;
}

body.force-mobile-view .voter-card-body {
  display: flex !important;
  flex-direction: row !important;
  gap: 10px !important;
  align-items: flex-start !important;
}

body.force-mobile-view .voter-slip-col {
  flex-shrink: 0 !important;
  width: 64px !important;
}

body.force-mobile-view .voter-slip-img-wrap {
  width: 64px !important;
  height: 82px !important;
  position: relative !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  border: 1.5px solid #cbd5e1 !important;
  background: #f8fafc !important;
}

body.force-mobile-view .voter-slip-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  max-height: none !important;
}

body.force-mobile-view .voter-slip-hint {
  display: none !important;
}

body.force-mobile-view .voter-no-slip {
  width: 64px !important;
  height: 82px !important;
  font-size: 10px !important;
  padding: 4px !important;
  border-radius: 6px !important;
}

body.force-mobile-view .voter-info-col {
  flex: 1 !important;
  min-width: 0 !important;
}

body.force-mobile-view .voter-title-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: baseline !important;
  gap: 6px !important;
  margin-bottom: 4px !important;
}

body.force-mobile-view .voter-name {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.25 !important;
  margin: 0 !important;
}

body.force-mobile-view .sugg-latin {
  font-size: 12px !important;
  color: #64748b !important;
  font-weight: 500 !important;
  margin-left: 4px !important;
}

body.force-mobile-view .voter-epic-compact {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  background: #0f172a !important;
  color: #ffffff !important;
  padding: 2px 7px !important;
  border-radius: 4px !important;
  font-size: 12px !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em !important;
  flex-shrink: 0 !important;
}

body.force-mobile-view .epic-compact-lbl {
  display: none !important;
}

body.force-mobile-view .epic-compact-val {
  color: #ffffff !important;
}

body.force-mobile-view .btn-copy-id {
  color: #cbd5e1 !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  min-height: auto !important;
  font-size: 11px !important;
  cursor: pointer !important;
}

body.force-mobile-view .voter-meta-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  margin-top: 4px !important;
  font-size: 12.5px !important;
}

body.force-mobile-view .voter-field {
  display: flex !important;
  align-items: baseline !important;
  gap: 4px !important;
  line-height: 1.3 !important;
}

body.force-mobile-view .voter-field .field-lbl {
  color: #64748b !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  flex-shrink: 0 !important;
}

body.force-mobile-view .voter-field .field-val {
  color: #1e293b !important;
  font-weight: 600 !important;
}

body.force-mobile-view .badge-house {
  background: #f1f5f9 !important;
  padding: 1px 5px !important;
  border-radius: 3px !important;
  border: 1px solid #e2e8f0 !important;
}

body.force-mobile-view .voter-actions-bar {
  display: flex !important;
  gap: 6px !important;
  align-items: center !important;
  margin-top: 8px !important;
  padding-top: 8px !important;
  border-top: 1px solid #f1f5f9 !important;
}

body.force-mobile-view .voter-actions-bar .btn-action {
  flex: 1 !important;
  min-height: 38px !important;
  padding: 6px 10px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
}

body.force-mobile-view .btn-action-whatsapp {
  background: #f0fdf4 !important;
  color: #15803d !important;
  border-color: #86efac !important;
}

body.force-mobile-view .btn-action-print,
body.force-mobile-view .btn-action-download {
  background: #f8fafc !important;
  color: #334155 !important;
  border-color: #cbd5e1 !important;
}

body.force-mobile-view .btn-mark-attended-main,
body.force-mobile-view .btn-revert-attended-main {
  min-height: 40px !important;
  font-size: 13px !important;
  padding: 8px 14px !important;
  border-radius: 6px !important;
}

body.force-mobile-view .dash-kpi-row-1,
body.force-mobile-view .dash-kpi-row-2 {
  grid-template-columns: 1fr !important;
}

body.force-mobile-view .dash-monitor-grid {
  grid-template-columns: 1fr !important;
}

body.force-mobile-view .dash-hourly-timeline-grid {
  grid-template-columns: repeat(3, 1fr) !important;
  row-gap: 12px !important;
}

body.force-mobile-view .attend-filters-bar {
  grid-template-columns: 1fr !important;
}

/* ── PHONE / WHATSAPP BULK UPDATE MODULE ── */
.phone-update-card {
  margin-top: 24px;
  padding: 20px;
  background: #ffffff;
  border: 1.5px solid #bbf7d0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(22, 101, 52, 0.05);
}

.phone-update-header h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 750;
  color: #166534;
}

.phone-update-header p {
  margin: 0 0 16px;
  font-size: 13.5px;
  line-height: 1.45;
}

.phone-update-row {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.phone-update-row .file-picker-label {
  flex: 1;
  min-width: 260px;
}

.phone-update-summary-box {
  margin-top: 16px;
  padding: 16px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 10px;
  font-size: 13.5px;
}

.phone-summary-kpis {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.phone-kpi-pill {
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.phone-kpi-success {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.phone-kpi-info {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #7dd3fc;
}

.phone-kpi-warn {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fcd34d;
}

.phone-samples-list {
  margin: 10px 0 0;
  padding-left: 20px;
  font-size: 13px;
  color: #334155;
  line-height: 1.5;
}

/* =====================================================================
   CANVA-GRADE MOBILE-FIRST UI/UX REDESIGN
   ===================================================================== */

/* ── 1. COMPACT APP BAR (HEADER) ── */
.module-header.mobile-app-bar {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 8px 14px !important;
  background: #ffffff !important;
  border-bottom: 1px solid #f1f5f9 !important;
  min-height: 48px !important;
  margin-bottom: 4px !important;
}

.app-bar-brand {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 0 !important;
}

.app-bar-title {
  font-size: 17px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 !important;
  letter-spacing: -0.01em !important;
  white-space: nowrap !important;
}

.app-bar-role-badge {
  display: inline-flex !important;
  align-items: center !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #0284c7 !important;
  background: #e0f2fe !important;
  padding: 2px 8px !important;
  border-radius: 9999px !important;
  text-transform: capitalize !important;
  white-space: nowrap !important;
}

.btn-icon-refresh {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
  color: #475569 !important;
  cursor: pointer !important;
  padding: 0 !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

.btn-icon-refresh:hover,
.btn-icon-refresh:focus-visible {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

.btn-icon-refresh:active {
  transform: rotate(180deg) scale(0.92) !important;
}

/* ── 2. SEGMENTED TAB BAR (CANVA / IOS COMPACT FIT ON ANY SCREEN) ── */
.dash-tab-bar {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: space-between !important;
  align-items: center !important;
  background: #f1f5f9 !important;
  padding: 3px !important;
  border-radius: 12px !important;
  margin: 4px 8px 10px !important;
  gap: 3px !important;
  border: 1px solid #e2e8f0 !important;
  box-sizing: border-box !important;
  width: calc(100% - 16px) !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

.dash-tab {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  width: 0 !important;
  max-width: 25% !important;
  min-height: 38px !important;
  padding: 6px 1px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  color: #64748b !important;
  background: transparent !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.dash-tab .tab-ico {
  font-size: 13px !important;
  flex-shrink: 0 !important;
  line-height: 1 !important;
}

.dash-tab .tab-txt {
  font-size: clamp(10px, 2.7vw, 11.5px) !important;
  font-weight: 750 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  letter-spacing: -0.02em !important;
}

/* Distinct color accents for each tab when active */
.dash-tab.tab-theme-voters.active {
  background: #0284c7 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.35) !important;
}

.dash-tab.tab-theme-voters.active .tab-txt {
  color: #ffffff !important;
}

.dash-tab.tab-theme-dashboard.active {
  background: #0d9488 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(13, 148, 136, 0.35) !important;
}

.dash-tab.tab-theme-dashboard.active .tab-txt {
  color: #ffffff !important;
}

.dash-tab.tab-theme-upload.active {
  background: #7c3aed !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.35) !important;
}

.dash-tab.tab-theme-upload.active .tab-txt {
  color: #ffffff !important;
}

.dash-tab.tab-theme-settings.active {
  background: #ea580c !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.35) !important;
}

.dash-tab.tab-theme-settings.active .tab-txt {
  color: #ffffff !important;
}

@media screen and (max-width: 400px) {
  .dash-tab {
    padding: 5px 0.5px !important;
    gap: 2px !important;
  }

  .dash-tab .tab-ico {
    font-size: 12px !important;
  }

  .dash-tab .tab-txt {
    font-size: 10px !important;
  }
}

/* ── 3. CLEAN UNIFIED SEARCH PILL ── */
.mobile-clean-search {
  background: transparent !important;
  border: none !important;
  padding: 0 12px 8px !important;
  margin: 0 !important;
  box-shadow: none !important;
}

.mobile-search-pill {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  height: 48px !important;
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 24px !important;
  padding: 0 6px 0 14px !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05) !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
}

.mobile-search-pill:focus-within {
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15), 0 3px 12px rgba(2, 132, 199, 0.08) !important;
}

.search-lead-icon {
  font-size: 16px !important;
  color: #94a3b8 !important;
  margin-right: 8px !important;
  flex-shrink: 0 !important;
  line-height: 1 !important;
}

.mobile-search-pill input[type="search"] {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  height: 100% !important;
  border: none !important;
  background: transparent !important;
  padding: 0 6px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: #0f172a !important;
  outline: none !important;
  box-shadow: none !important;
}

.mobile-search-pill input[type="search"]::-webkit-search-cancel-button,
.search-input-wrap input[type="search"]::-webkit-search-cancel-button,
#central-query::-webkit-search-cancel-button {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: none !important;
}

.mobile-search-pill input[type="search"]::placeholder {
  color: #94a3b8 !important;
  font-size: 13.5px !important;
}

.btn-search-icon {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: none !important;
  background: transparent !important;
  color: #64748b !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin-left: 2px !important;
  flex-shrink: 0 !important;
  transition: all 0.15s ease !important;
}

.btn-search-icon:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

.btn-search-icon.btn-voice-search {
  color: #059669 !important;
  background: #ecfdf5 !important;
}

.btn-search-icon.btn-voice-search:hover {
  background: #d1fae5 !important;
  color: #047857 !important;
}

.btn-search-icon.search-main-btn {
  background: #0284c7 !important;
  color: #ffffff !important;
}

.btn-search-icon.search-main-btn:hover {
  background: #0369a1 !important;
}

.btn-search-icon.btn-clear-search {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #94a3b8 !important;
  width: 28px !important;
  height: 28px !important;
}

.btn-search-icon.btn-clear-search:hover {
  color: #475569 !important;
  background: #e2e8f0 !important;
}

.mobile-search-pill .finder-suggestions {
  position: absolute !important;
  top: 54px !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 100 !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 14px !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12) !important;
}

/* ── 4. DASHBOARD COMPACT MOBILE TOOLBAR ── */
.dash-panel {
  padding: 8px 12px 32px !important;
  gap: 12px !important;
}

.dash-header {
  margin-bottom: 2px !important;
}

.dash-header-title-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 2px !important;
}

.dash-title {
  font-size: 17px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 !important;
}

.dash-live-time {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #64748b !important;
  background: #f1f5f9 !important;
  padding: 2px 8px !important;
  border-radius: 9999px !important;
}

.dash-subtitle {
  font-size: 12px !important;
  color: #64748b !important;
  margin: 0 !important;
}

.dash-mobile-toolbar {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 6px 8px !important;
  margin-bottom: 4px !important;
}

/* Results strip */
.central-results-bar {
  padding: 2px 12px 4px !important;
  font-size: 12px !important;
  color: #64748b !important;
  min-height: 0 !important;
}

.central-results-bar p:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ── WHATSAPP MOBILE PAIRING CODE STYLES ── */
.wa-connect-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 520px;
}

.wa-method-card {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.wa-pair-card {
  border-color: #86efac;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
}

.wa-method-badge {
  display: inline-block;
  background: #dcfce7;
  color: #15803d;
  font-size: 12px;
  font-weight: 750;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid #86efac;
  margin-bottom: 8px;
}

.wa-pair-card h4 {
  margin: 0 0 6px;
  font-size: 16px;
  color: #14532d;
  font-weight: 800;
}

.wa-pair-input-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.wa-pair-input-row .phone-prefix {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 700;
  font-size: 14px;
  color: #334155;
}

.wa-pair-input-row input[type="tel"] {
  flex: 1 1 180px;
  min-width: 150px;
  height: 40px;
  padding: 6px 12px;
  font-size: 15px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  outline: none;
}

.wa-pair-input-row input[type="tel"]:focus {
  border-color: #15803d;
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.15);
}

.wa-pair-input-row button {
  height: 40px;
  padding: 0 16px;
  white-space: nowrap;
  font-weight: 700;
  font-size: 13.5px;
}

.wa-pair-result-box {
  margin-top: 14px;
  background: #f0fdf4;
  border: 1.5px dashed #22c55e;
  border-radius: 10px;
  padding: 14px;
}

.wa-pair-code-lbl {
  font-size: 12px;
  font-weight: 700;
  color: #166534;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.wa-pair-code-display {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.wa-pair-code-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 5px;
  color: #15803d;
  background: #ffffff;
  padding: 6px 14px;
  border: 1.5px solid #86efac;
  border-radius: 8px;
  user-select: all;
}

.btn-copy-code {
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 700;
  background: #15803d;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-copy-code:hover {
  background: #166534;
}

.wa-pair-guide {
  font-size: 12.5px;
  color: #334155;
  background: #ffffff;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #bbf7d0;
}

.wa-pair-guide ol {
  margin: 6px 0 0;
  padding-left: 20px;
  line-height: 1.6;
}

.wa-qr-card-desktop {
  background: #f8fafc;
}

/* ── 5. COMPACT VOTER SEARCH MATCH CARD (IDENTIFICATION ONLY, NO ACTION BUTTONS) ── */
.voter-match-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 7px 11px !important;
  margin-bottom: 6px !important;
  cursor: pointer !important;
  transition: all 0.16s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  user-select: none !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}

.voter-match-card:hover,
.voter-match-card:focus-visible {
  border-color: #0284c7 !important;
  background: #f8fafc !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.1) !important;
  outline: none !important;
}

.voter-match-card:active {
  transform: scale(0.99) !important;
  background: #f1f5f9 !important;
}

/* Photo Thumbnail: Tight crop to the voter's face photo */
.voter-match-photo-wrap {
  width: 44px !important;
  height: 48px !important;
  border-radius: 7px !important;
  overflow: hidden !important;
  background: #f1f5f9 !important;
  border: 1.5px solid #cbd5e1 !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.voter-match-photo-canvas,
.voter-match-photo-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  border-radius: 6px !important;
}

.voter-match-no-photo {
  font-size: 20px !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Voter Identification Details */
.voter-match-info {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  justify-content: center !important;
}

.voter-match-badges {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: nowrap !important;
}

.voter-match-serial {
  font-size: 11px !important;
  font-weight: 800 !important;
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  padding: 1px 6px !important;
  border-radius: 4px !important;
  border: 1px solid #bfdbfe !important;
  white-space: nowrap !important;
}

.voter-match-booth {
  font-size: 11px !important;
  font-weight: 700 !important;
  background: #f8fafc !important;
  color: #475569 !important;
  padding: 1px 5px !important;
  border-radius: 4px !important;
  border: 1px solid #e2e8f0 !important;
}

.voter-match-house {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #64748b !important;
}

.badge-attended-pill {
  font-size: 10.5px !important;
  font-weight: 700 !important;
  background: #dcfce7 !important;
  color: #15803d !important;
  padding: 1px 6px !important;
  border-radius: 9999px !important;
}

.badge-unmarked-pill {
  font-size: 10.5px !important;
  font-weight: 700 !important;
  background: #f1f5f9 !important;
  color: #64748b !important;
  padding: 1px 6px !important;
  border-radius: 9999px !important;
}

.voter-match-name-row {
  display: flex !important;
  align-items: baseline !important;
  gap: 6px !important;
  flex-wrap: nowrap !important;
  overflow: hidden !important;
}

.voter-match-name {
  font-size: 14.5px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.voter-match-latin {
  font-size: 12.5px !important;
  font-weight: 500 !important;
  color: #64748b !important;
}

.voter-match-meta-row {
  font-size: 11.5px !important;
  color: #475569 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.voter-match-id-row {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-top: 1px !important;
}

.voter-match-epic {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  color: #0369a1 !important;
  background: #e0f2fe !important;
  border: 1px solid #bae6fd !important;
  padding: 1px 6px !important;
  border-radius: 4px !important;
  letter-spacing: 0.3px !important;
  white-space: nowrap !important;
}

.voter-match-phone {
  font-size: 11.5px !important;
  font-weight: 600 !important;
  color: #059669 !important;
}

.voter-match-action {
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #0284c7 !important;
  padding-left: 2px !important;
}

.voter-match-chevron {
  font-size: 18px !important;
}

/* ── 6. FULL VOTER CARD SLIP & ACTION BUTTON STYLES ── */
.voter-back-banner {
  display: none !important;
}

/* ── ULTRA-COMPACT SINGLE-SCREEN MOBILE VOTER CARD ── */
.compact-voter-card {
  padding: 10px 12px !important;
  background: #ffffff !important;
  border-radius: 14px !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* 1. Ultra-Compact Top Bar (Single Row: #370 + 108-140-380 + Status) */
.compact-header-strip {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 6px !important;
  margin-bottom: 6px !important;
  padding: 0 0 6px 0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  width: 100% !important;
  background: transparent !important;
}

.voter-card-header-left {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: nowrap !important;
  min-width: 0 !important;
}

.badge-serial-pill {
  background: #0f172a !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  padding: 2px 8px !important;
  border-radius: 6px !important;
  white-space: nowrap !important;
  line-height: 1.4 !important;
}

.badge-roll-pill {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  font-size: 11.5px !important;
  font-weight: 750 !important;
  padding: 2px 8px !important;
  border-radius: 6px !important;
  border: 1px solid #cbd5e1 !important;
  white-space: nowrap !important;
  line-height: 1.4 !important;
}

.badge-status-pill {
  font-size: 11.5px !important;
  font-weight: 750 !important;
  padding: 2px 9px !important;
  border-radius: 999px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  line-height: 1.4 !important;
}

.badge-status-pill.badge-attended {
  background: #dcfce7 !important;
  color: #15803d !important;
  border: 1px solid #86efac !important;
}

.badge-status-pill.badge-unmarked {
  background: #fef9c3 !important;
  color: #854d0e !important;
  border: 1px solid #fde047 !important;
}

/* 2. Sub-Bar (Ward, Booth, Polling Station) */
.voter-card-subbar {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #475569 !important;
  background: #f8fafc !important;
  border: 1px solid #f1f5f9 !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
  margin-bottom: 8px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* 3. Compact Card Body (Side by Side - Never overflows!) */
.compact-card-body {
  display: flex !important;
  flex-direction: row !important;
  gap: 10px !important;
  align-items: flex-start !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.voter-photo-thumb-col {
  flex-shrink: 0 !important;
  width: 76px !important;
}

.voter-photo-thumb-wrap {
  width: 76px !important;
  height: 86px !important;
  position: relative !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  border: 1.5px solid #cbd5e1 !important;
  background: #0f172a !important;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08) !important;
  cursor: pointer !important;
}

.voter-photo-thumb-wrap .voter-match-photo-canvas {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
}

.voter-photo-zoom-pill {
  position: absolute !important;
  bottom: 2px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: rgba(15, 23, 42, 0.85) !important;
  color: #ffffff !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  padding: 1px 5px !important;
  border-radius: 4px !important;
  white-space: nowrap !important;
  backdrop-filter: blur(2px) !important;
}

.voter-no-photo-box {
  width: 76px !important;
  height: 86px !important;
  border-radius: 8px !important;
  background: #f1f5f9 !important;
  border: 1px dashed #cbd5e1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 28px !important;
}

.compact-info-col {
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  overflow: hidden !important;
}

.voter-card-epic-row {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
  margin-bottom: 1px !important;
}

.voter-epic-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  background: #e0f2fe !important;
  border: 1px solid #bae6fd !important;
  padding: 1px 6px !important;
  border-radius: 5px !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  color: #0369a1 !important;
}

.btn-copy-epic-compact {
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  padding: 0 2px !important;
  font-size: 11px !important;
  line-height: 1 !important;
  min-height: 0 !important;
}

.voter-phone-pill {
  font-size: 11.5px !important;
  font-weight: 700 !important;
  color: #15803d !important;
  background: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  padding: 1px 6px !important;
  border-radius: 5px !important;
}

.voter-card-name-row {
  margin: 0 !important;
}

.voter-main-name {
  margin: 0 !important;
  font-size: 15.5px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.25 !important;
  word-break: break-word !important;
}

.voter-card-meta-lines {
  display: flex !important;
  flex-direction: column !important;
  gap: 1px !important;
  font-size: 11.5px !important;
  color: #334155 !important;
  line-height: 1.3 !important;
}

.voter-meta-item {
  word-break: break-word !important;
}

/* 4. Compact Actions Toolbar (Side-by-Side Attended/Status + 3 Icon-Only Buttons) */
.voter-actions-bar,
.compact-actions-bar {
  margin-top: 8px !important;
  padding-top: 8px !important;
  border-top: 1px dashed #cbd5e1 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  width: 100% !important;
}

/* 5. Full Slip Lightbox Modal */
.slip-lightbox-backdrop {
  z-index: 10000 !important;
}

.slip-lightbox-dialog {
  max-width: 600px !important;
  width: 95% !important;
  padding: 14px !important;
}

.slip-lightbox-body {
  padding: 8px !important;
  background: #0f172a !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  max-height: 70vh !important;
  overflow: auto !important;
}

.slip-lightbox-img {
  max-width: 100% !important;
  max-height: 65vh !important;
  height: auto !important;
  object-fit: contain !important;
  border-radius: 4px !important;
  display: block !important;
}

.slip-lightbox-footer {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding-top: 10px !important;
  margin-top: 8px !important;
}

/* Action Buttons Toolbar with Trending Iconography */
.action-btn-svg {
  width: 17px !important;
  height: 17px !important;
  flex-shrink: 0 !important;
  vertical-align: middle !important;
}

/* 1. Side-by-Side Attendance & Status Toggle Buttons */
.voter-card-attend-action {
  width: 100% !important;
}

.attend-status-dual-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 6px !important;
  width: 100% !important;
}

.btn-attend-hero {
  width: 100% !important;
  min-height: 38px !important;
  height: 38px !important;
  border-radius: 9px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0.1px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  cursor: pointer !important;
  transition: all 0.16s cubic-bezier(0.4, 0, 0.2, 1) !important;
  padding: 0 10px !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
}

.btn-attend-hero:active {
  transform: scale(0.98) !important;
}

.btn-attend-mark {
  background: #15803d !important;
  color: #ffffff !important;
  border: 1.5px solid #166534 !important;
  box-shadow: 0 2px 6px rgba(21, 128, 61, 0.22) !important;
}

.btn-attend-mark:hover {
  background: #166534 !important;
}

.btn-attend-unmark {
  background: #dcfce7 !important;
  color: #166534 !important;
  border: 1.5px solid #22c55e !important;
  box-shadow: 0 1px 4px rgba(22, 101, 52, 0.12) !important;
}

.btn-attend-unmark:hover {
  background: #bbf7d0 !important;
  color: #14532d !important;
}

.btn-status-mark {
  background: #0284c7 !important;
  color: #ffffff !important;
  border: 1.5px solid #0369a1 !important;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.22) !important;
}

.btn-status-mark:hover {
  background: #0369a1 !important;
}

.btn-status-unmark {
  background: #dbeafe !important;
  color: #1e40af !important;
  border: 1.5px solid #60a5fa !important;
  box-shadow: 0 1px 4px rgba(30, 64, 175, 0.12) !important;
}

.btn-status-unmark:hover {
  background: #bfdbfe !important;
  color: #1e3a8a !important;
}

/* 2. Quick Actions 3-Column Equal Icon-Only Grid */
.voter-quick-actions-row {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 6px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.compact-actions-bar .btn-action,
.voter-quick-actions-row .btn-action {
  width: 100% !important;
  min-height: 36px !important;
  height: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  border-radius: 9px !important;
  padding: 0 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
  box-sizing: border-box !important;
}

.compact-actions-bar .action-btn-svg,
.voter-quick-actions-row .action-btn-svg {
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0 !important;
}

.wa-done-check {
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

.compact-actions-bar .btn-action:active,
.voter-quick-actions-row .btn-action:active {
  transform: scale(0.97) !important;
}

.compact-actions-bar .btn-action-whatsapp,
.voter-quick-actions-row .btn-action-whatsapp {
  background: #25d366 !important;
  color: #ffffff !important;
  border: 1px solid #1ebe5d !important;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.28) !important;
}

.compact-actions-bar .btn-action-whatsapp:hover,
.voter-quick-actions-row .btn-action-whatsapp:hover {
  background: #22c55e !important;
}

.compact-actions-bar .btn-action-whatsapp.wa-sent-done,
.voter-quick-actions-row .btn-action-whatsapp.wa-sent-done {
  background: #dcfce7 !important;
  color: #166534 !important;
  border: 1.5px solid #22c55e !important;
  box-shadow: 0 2px 6px rgba(22, 101, 52, 0.14) !important;
}

.compact-actions-bar .btn-action-whatsapp.wa-sent-done:hover,
.voter-quick-actions-row .btn-action-whatsapp.wa-sent-done:hover {
  background: #bbf7d0 !important;
  color: #14532d !important;
}

.compact-actions-bar .btn-action-slip,
.voter-quick-actions-row .btn-action-slip {
  background: #f8fafc !important;
  color: #0f172a !important;
  border: 1.5px solid #cbd5e1 !important;
}

.compact-actions-bar .btn-action-slip:hover,
.voter-quick-actions-row .btn-action-slip:hover {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
}

.compact-actions-bar .btn-action-download,
.voter-quick-actions-row .btn-action-download {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  border: 1.5px solid #bfdbfe !important;
}

.compact-actions-bar .btn-action-download:hover,
.voter-quick-actions-row .btn-action-download:hover {
  background: #dbeafe !important;
  border-color: #93c5fd !important;
}

/* ── INSTALL & SHARE APP STYLES ── */
.masthead-install-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #16a34a;
  color: #ffffff !important;
  border: 1px solid #15803d;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.masthead-install-btn:hover {
  background: #15803d;
}

.btn-pulse {
  animation: pwaPulse 2s infinite;
}

@keyframes pwaPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(22, 163, 74, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
  }
}

.install-share-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.install-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
}

.install-card-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 750;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.install-card h4 {
  margin: 0 0 6px 0;
  font-size: 15px;
  font-weight: 750;
  color: #0f172a;
}

.install-steps-list {
  margin: 8px 0;
  padding-left: 20px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #334155;
}

.install-steps-list strong {
  color: #0f172a;
}

.install-url-code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11.5px;
  color: #0284c7;
  word-break: break-all;
}

.install-note {
  font-size: 11.5px;
  color: #0369a1;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 6px;
  padding: 8px 10px;
  margin-top: auto;
}

/* ── iOS Safari Install Helper Banner ── */
.ios-install-banner {
  position: fixed;
  bottom: 64px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 400px;
  background: #0f172a;
  color: #ffffff;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
  z-index: 9999;
  animation: slideUpBanner 0.3s ease-out;
}

@keyframes slideUpBanner {
  from {
    transform: translate(-50%, 40px);
    opacity: 0;
  }

  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

.ios-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ios-banner-icon {
  font-size: 26px;
  flex-shrink: 0;
}

.ios-banner-text {
  flex: 1;
  font-size: 12px;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ios-banner-text strong {
  color: #f8fafc;
}

.ios-banner-text span {
  color: #cbd5e1;
}

.ios-banner-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  flex-shrink: 0;
}

.ios-banner-pointer {
  text-align: center;
  font-size: 13px;
  color: #38bdf8;
  margin-top: 4px;
  animation: bouncePointer 1.5s infinite;
}

@keyframes bouncePointer {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(4px);
  }
}

/* ── WHATSAPP-STYLE SILENT UPDATE TOAST ── */
.pwa-update-toast {
  position: fixed;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 68px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  background: #0f172a;
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 9999px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.45), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  animation: slideUpToast 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  max-width: 90vw;
  box-sizing: border-box;
}

@keyframes slideUpToast {
  from {
    opacity: 0;
    transform: translate(-50%, 16px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.pwa-update-content {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.pwa-update-icon {
  font-size: 14px;
  line-height: 1;
}

.pwa-update-text {
  font-size: 12.5px;
  color: #f1f5f9;
}

.pwa-update-btn {
  background: #0284c7 !important;
  color: #ffffff !important;
  border: none !important;
  padding: 4px 12px !important;
  border-radius: 9999px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: background 0.15s ease, transform 0.1s ease !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
}

.pwa-update-btn:hover,
.pwa-update-btn:active {
  background: #0369a1 !important;
  transform: scale(0.97);
}

.pwa-update-dismiss {
  background: transparent !important;
  border: none !important;
  color: #94a3b8 !important;
  font-size: 14px !important;
  cursor: pointer !important;
  padding: 2px 6px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}

.pwa-update-dismiss:hover {
  color: #ffffff !important;
}
/* ── Booth Duty Roster & Activity Log (record-only tracking) ── */
.track-section h4 { margin: 18px 0 8px; font-size: 15px; }
.track-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 12px 0; }
.track-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; min-width: 140px; flex: 1 1 140px; }
.track-form button, .track-form .button { flex: 0 0 auto; min-height: 40px; }
.track-head-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; }
.track-list { display: flex; flex-direction: column; gap: 6px; }
.track-active-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 12px; border: 1px solid #bbf7d0; background: #f0fdf4; border-radius: 10px; }
.track-active-row .track-end-btn { margin-left: auto; padding: 4px 12px; min-height: 32px; }
.track-booth-pill { background: #fef3c7; color: #92400e; font-weight: 700; padding: 2px 10px; border-radius: 999px; font-size: 13px; }
.track-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.track-table th { text-align: left; background: #f1f5f9; padding: 6px 8px; position: sticky; top: 0; white-space: nowrap; }
.track-table td { padding: 6px 8px; border-top: 1px solid #e2e8f0; vertical-align: top; }
.track-table tbody tr:nth-child(even) { background: #f8fafc; }
#activity-list { max-height: 60vh; overflow: auto; }

/* ── SETTINGS SCREEN MOBILE-FIRST ULTRA-COMPACT UI/UX ── */
.settings-tabs-scroll-wrap {
  position: relative;
  margin: 12px 0 16px;
  overflow: hidden;
}

.settings-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 2px 6px;
  margin: 0;
  flex-wrap: nowrap !important;
}

.settings-tabs::-webkit-scrollbar {
  display: none;
}

.settings-tabs button {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 650;
  padding: 7px 14px;
  border-radius: 9999px;
  border: 1.5px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  transition: all .15s ease;
  line-height: 1.2;
}

.settings-tabs button[aria-pressed="true"] {
  background: #15803d !important;
  color: #ffffff !important;
  border-color: #15803d !important;
  box-shadow: 0 2px 8px rgba(21, 128, 61, 0.3) !important;
}

@media screen and (max-width: 768px) {
  .settings-screen {
    padding: 12px 14px 80px !important;
    border: none !important;
    background: transparent !important;
    margin-bottom: 0 !important;
  }

  .settings-screen-header {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    padding-bottom: 10px !important;
    margin-bottom: 8px !important;
  }

  .settings-screen-heading h2 {
    font-size: 18px !important;
    line-height: 1.2 !important;
    margin: 0 0 2px !important;
  }

  .settings-screen-heading p {
    font-size: 11.5px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .btn-back-screen {
    padding: 6px 12px !important;
    font-size: 12.5px !important;
    min-height: 34px !important;
    border-radius: 6px !important;
  }

  /* Compact sub-module cards on mobile */
  .settings-screen section {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
    margin-bottom: 16px;
  }

  .settings-screen section h3 {
    font-size: 16px !important;
    margin: 0 0 4px !important;
    line-height: 1.25 !important;
  }

  .settings-screen section > p.muted {
    font-size: 12px !important;
    margin: 0 0 12px !important;
    line-height: 1.4 !important;
  }

  /* User manage box on mobile */
  .user-manage-box {
    padding: 12px !important;
    border-radius: 10px !important;
    margin-top: 12px !important;
    margin-bottom: 12px !important;
  }

  .user-manage-box h4 {
    font-size: 14.5px !important;
    margin-bottom: 6px !important;
  }

  .user-form-grid {
    gap: 12px !important;
    margin-top: 10px !important;
  }

  .form-section-card {
    padding: 10px 12px !important;
    border-radius: 8px !important;
  }

  .form-section-title {
    font-size: 13px !important;
    margin-bottom: 8px !important;
  }

  .checkbox-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .check-card {
    padding: 8px 10px !important;
  }

  /* Track forms on mobile (Booth duty & Activity log) */
  .track-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin: 8px 0 !important;
  }

  .track-form label {
    width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    font-size: 12.5px !important;
  }

  .track-form input,
  .track-form select,
  .track-form button,
  .track-form .button {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .track-head-row {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .track-active-row {
    padding: 8px 10px !important;
    font-size: 13px !important;
  }

  .track-active-row strong {
    font-size: 13.5px !important;
  }

  .track-booth-pill {
    font-size: 12px !important;
    padding: 2px 8px !important;
  }

  /* Table scroll containers touch responsiveness */
  .table-scroll {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    max-width: 100%;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .table-scroll table {
    min-width: 520px;
  }

  .table-scroll th,
  .table-scroll td {
    padding: 6px 8px !important;
    font-size: 12px !important;
  }

  /* WhatsApp connection mobile box */
  .wa-connect-methods {
    max-width: 100% !important;
  }

  .wa-method-card {
    padding: 12px !important;
    border-radius: 10px !important;
  }

  .wa-pair-input-row {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .wa-pair-input-row input[type="tel"] {
    width: 100% !important;
  }

  .wa-pair-input-row button {
    width: 100% !important;
  }

  /* Install & share grid */
  .install-share-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .install-card {
    padding: 14px !important;
  }
}

/* ── Match list phone & status badge enhancements ── */
.voter-match-phone-pill {
  font-size: 11px !important;
  font-weight: 700 !important;
  background: #e0f2fe !important;
  color: #0369a1 !important;
  padding: 1px 6px !important;
  border-radius: 9999px !important;
  border: 1px solid #bae6fd !important;
}

.badge-status-pill-small {
  font-size: 10.5px !important;
  font-weight: 700 !important;
  background: #f3e8ff !important;
  color: #7e22ce !important;
  padding: 1px 6px !important;
  border-radius: 9999px !important;
  border: 1px solid #e9d5ff !important;
}
