/* ========================================
   Dashboard - Estela's 18th
   ======================================== */

:root {
  --ink: #111113;
  --ink-soft: #2A2A2E;
  /* compat: o CSS antigo usa --forest em varios lugares */
  --forest: #111113;
  --forest-dark: #000000;
  --gold: #C9A84C;
  --gold-light: #E8D48B;
  --white: #FFFFFF;
  --off-white: #F7F5F0;
  --gray-50: #FAFAFA;
  --gray-100: #F4F4F5;
  --gray-200: #E7E7EA;
  --gray-300: #D2D2D8;
  --text-dark: #1A1A1A;
  --text-body: #444;
  --text-muted: #888;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(17,17,19,0.05);
  --shadow: 0 4px 16px rgba(17,17,19,0.07);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Poppins', -apple-system, sans-serif;
  font-size: 14px; color: var(--text-body); background: #FAFAFA;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---- GLOBAL FORM CONTROLS ---- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="date"],
input[type="time"],
select,
textarea {
  font-family: 'Poppins', -apple-system, sans-serif;
  font-size: 14px; font-weight: 400;
  padding: 10px 14px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  color: var(--text-dark);
  outline: none;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.1);
}
input::placeholder { color: var(--gray-300); }

select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%232D5A27' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
select option { background: var(--white); }

.inline-select {
  padding: 6px 10px; font-size: 13px;
  border-radius: 6px; min-width: 100px;
}

label {
  display: block; font-size: 11px; font-weight: 600;
  letter-spacing: 0.5px; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 5px;
}

/* ---- Header ---- */
.dash-header {
  background: var(--white); border-bottom: 1px solid var(--gray-200); padding: 14px 0;
}
.dash-header .container {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.dash-brand h1 { font-size: 20px; font-weight: 600; color: var(--text-dark); }
.dash-brand span { font-size: 12px; color: var(--text-muted); letter-spacing: 1px; }

.dash-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-export, .btn-back {
  font-family: inherit; font-size: 12px; font-weight: 600;
  padding: 8px 16px; border-radius: var(--radius); cursor: pointer;
  text-decoration: none; border: 1.5px solid var(--gray-200); transition: all 0.2s ease;
}
.btn-export { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-export:hover { background: #000; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-back { background: var(--white); color: var(--text-body); box-shadow: var(--shadow-sm); }
.btn-back:hover { border-color: var(--ink); color: var(--ink); }

/* refresh */
.btn-refresh {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: inherit; font-size: 12px; font-weight: 600;
  padding: 8px 14px; border-radius: var(--radius); cursor: pointer;
  background: var(--white); color: var(--text-body);
  border: 1.5px solid var(--gray-200); box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
.btn-refresh:hover { border-color: var(--ink); color: var(--ink); }
.btn-refresh svg { width: 15px; height: 15px; transition: transform 0.4s ease; }
.btn-refresh.spinning svg { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* barra de progresso do topo */
.load-bar {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200;
  background: transparent; overflow: hidden; pointer-events: none;
}
.load-bar.active::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, var(--ink), transparent);
  animation: slide 1.1s ease-in-out infinite;
}
@keyframes slide {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* skeleton */
.skeleton-wrap { display: none; padding: 8px 0 20px; }
.skeleton-wrap .sk-line {
  height: 44px; margin-bottom: 10px; border-radius: var(--radius);
  background: linear-gradient(90deg, #EFEFF2 25%, #F7F7F9 37%, #EFEFF2 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s ease infinite;
}
.skeleton-wrap .sk-lg { height: 64px; }
.skeleton-wrap .sk-sm { height: 32px; width: 55%; }
@keyframes shimmer {
  0%   { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

/* ---- Stats ---- */
.dash-main { padding: 24px 0 60px; }

.stats-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 24px;
}
.stat-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: 14px; padding: 18px 14px; text-align: center;
  box-shadow: var(--shadow-sm); transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-number { display: block; font-size: 28px; font-weight: 700; color: var(--ink); line-height: 1.2; letter-spacing: -0.5px; }
.stat-label { font-size: 11px; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; }

/* ---- Tabs ---- */
.tabs {
  display: flex; gap: 4px; margin-bottom: 20px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}
.tabs { gap: 6px; }
.tab {
  font-family: inherit; font-size: 13px; font-weight: 500;
  padding: 9px 16px; background: var(--white);
  border: 1px solid var(--gray-200); border-radius: 999px;
  cursor: pointer; white-space: nowrap; transition: all 0.18s ease; color: var(--text-muted);
}
.tab:hover { color: var(--text-dark); border-color: var(--gray-300); }
.tab.active {
  background: var(--ink); color: var(--white); border-color: var(--ink);
  box-shadow: 0 3px 10px rgba(17,17,19,0.18);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ---- Form Cards ---- */
.codes-form-card, .planning-settings, .gallery-config-box, .codes-info-box {
  background: var(--white); border: 1.5px solid var(--gray-200);
  border-radius: 12px; padding: 20px; margin-bottom: 16px;
}
.codes-form-card h3, .gallery-config-box h3 {
  font-size: 15px; font-weight: 600; color: var(--text-dark); margin-bottom: 14px;
}

.codes-info-box {
  background: rgba(45, 90, 39, 0.04); border-color: rgba(45, 90, 39, 0.15);
}
.codes-info-box p { font-size: 13px; color: var(--text-body); line-height: 1.6; }
.codes-info-box strong { color: var(--forest); }

.code-form-row {
  display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap;
}
.code-field { flex: 1; min-width: 140px; }
.code-field-small { flex: 0 0 110px; min-width: 90px; }

.btn-add-code {
  font-family: inherit; font-size: 13px; font-weight: 600;
  padding: 10px 20px; background: var(--forest); color: var(--white);
  border: none; border-radius: var(--radius); cursor: pointer;
  white-space: nowrap; transition: background 0.2s ease;
  height: 42px;
}
.btn-add-code:hover { background: var(--forest-dark); }

/* ---- Planning: Capacity Bar ---- */
.capacity-bar {
  width: 100%; height: 8px; background: var(--gray-200);
  border-radius: 4px; overflow: hidden; margin: 14px 0 6px;
}
.capacity-fill {
  height: 100%; background: var(--forest); border-radius: 4px;
  transition: width 0.4s ease;
}
.capacity-fill.over { background: #c0392b; }
.capacity-text { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }

/* ---- Planning: Settings Row ---- */
.setting-row {
  display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap;
}
.setting-field { flex: 0 0 160px; }

/* ---- Table Map ---- */
.table-map-section {
  background: var(--white); border: 1.5px solid var(--gray-200);
  border-radius: 12px; padding: 20px; margin-bottom: 16px;
}
.table-map-section h3 { font-size: 15px; font-weight: 600; color: var(--text-dark); margin-bottom: 14px; }

.table-map {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.table-card {
  border: 1.5px solid var(--gray-200); border-radius: 10px;
  padding: 14px; transition: border-color 0.2s ease;
}
.table-card:hover { border-color: var(--gold); }
.table-card.table-full { border-color: var(--forest); background: rgba(45,90,39,0.02); }
.table-card.table-over { border-color: #c0392b; background: rgba(192,57,43,0.03); }

.table-number {
  font-size: 12px; font-weight: 700; color: var(--forest);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px;
}
.table-fill-bar {
  width: 100%; height: 4px; background: var(--gray-200);
  border-radius: 2px; overflow: hidden; margin-bottom: 4px;
}
.table-fill {
  height: 100%; background: var(--forest); border-radius: 2px;
  transition: width 0.3s ease;
}
.table-over .table-fill { background: #c0392b; }
.table-count {
  font-size: 13px; font-weight: 600; color: var(--text-dark); margin-bottom: 6px;
}
.table-guests { display: flex; flex-wrap: wrap; gap: 4px; }
.table-guests span {
  font-size: 11px; padding: 2px 8px; background: var(--gray-100);
  border-radius: 4px; color: var(--text-body);
}
.table-guests .empty { color: var(--gray-300); font-style: italic; }

/* ---- Table Wrap ---- */
.table-wrap {
  background: var(--white); border: 1.5px solid var(--gray-200);
  border-radius: 12px; overflow-x: auto;
}
table { width: 100%; border-collapse: collapse; min-width: 600px; }
th {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1px; color: var(--text-muted);
  padding: 12px 14px; text-align: left;
  border-bottom: 1.5px solid var(--gray-200); background: var(--gray-50);
}
th:first-child { border-radius: 12px 0 0 0; }
th:last-child { border-radius: 0 12px 0 0; }
td {
  padding: 10px 14px; border-bottom: 1px solid var(--gray-100);
  font-size: 13px; color: var(--text-body); vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(45,90,39,0.015); }

.code-badge {
  font-family: 'SF Mono', Monaco, 'Courier New', monospace; font-size: 12px;
  background: var(--off-white); padding: 4px 10px; border-radius: 6px;
  border: 1.5px solid var(--gray-200); font-weight: 600; letter-spacing: 0.5px;
  display: inline-block;
}

.badge {
  display: inline-block; padding: 3px 10px; border-radius: 12px;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-yes { background: #E8F5E9; color: #2E7D32; }
.badge-no { background: #FFEBEE; color: #C62828; }
.badge-pending { background: #FFF8E1; color: #F57F17; }
.badge-video { background: #E3F2FD; color: #1565C0; }

.btn-delete {
  font-family: inherit; font-size: 11px; font-weight: 600;
  padding: 5px 14px; background: none; border: 1.5px solid #e8d0d0;
  color: #c0392b; border-radius: 6px; cursor: pointer; transition: all 0.2s ease;
}
.btn-delete:hover { background: #fef0f0; border-color: #c0392b; }

.empty-msg { padding: 36px; text-align: center; color: var(--text-muted); font-size: 14px; }

/* ---- Door List ---- */
.door-list-section {
  margin-top: 20px; background: var(--white);
  border: 1.5px solid var(--gray-200); border-radius: 12px; padding: 20px;
}
.door-list-section h3 { font-size: 15px; font-weight: 600; color: var(--text-dark); margin-bottom: 12px; }
.door-list-section .btn-export { margin-bottom: 16px; }

.door-item {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 0; border-bottom: 1px solid var(--gray-100);
}
.door-item:last-child { border-bottom: none; }
.door-number { width: 28px; font-weight: 700; color: var(--forest); font-size: 13px; }
.door-name { flex: 1; font-size: 14px; font-weight: 500; color: var(--text-dark); }
.door-code { font-size: 11px; color: var(--text-muted); font-family: monospace; }
.door-check { width: 20px; height: 20px; border: 2px solid var(--gray-200); border-radius: 4px; }

/* ---- Gallery Config ---- */
.gallery-config-box p {
  font-size: 13px; color: var(--text-body); margin-bottom: 14px; line-height: 1.6;
}
.gallery-config-row {
  display: flex; gap: 10px; align-items: flex-end; margin-bottom: 20px;
}
.gallery-config-row .code-field { max-width: 260px; }

.gallery-share-section {
  display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap;
  padding-top: 20px; border-top: 1.5px solid var(--gray-200);
}

.qr-code-box {
  text-align: center; flex-shrink: 0;
}
.qr-code-box canvas {
  border: 1.5px solid var(--gray-200); border-radius: 12px;
  display: block; margin-bottom: 10px;
}
.qr-code-box p { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }

.gallery-link-details { flex: 1; min-width: 240px; }

.share-link-row { display: flex; gap: 8px; margin-bottom: 10px; }
.share-link-row input { flex: 1; font-size: 13px; background: var(--gray-50); }

.btn-copy {
  font-family: inherit; font-size: 12px; font-weight: 600;
  padding: 10px 18px; background: var(--gold); color: var(--white);
  border: none; border-radius: var(--radius); cursor: pointer; white-space: nowrap;
  transition: background 0.2s ease;
}
.btn-copy:hover { background: #b8973f; }

.gallery-pw-display { font-size: 13px; color: var(--text-body); }
.gallery-pw-display strong { color: var(--forest); font-size: 15px; letter-spacing: 1px; }

/* ---- Login Overlay ---- */
.login-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
}
.login-overlay.hidden { display: none; }
.login-card {
  background: var(--white); border: 1.5px solid var(--gray-200);
  border-radius: 16px; padding: 40px 36px; width: 100%; max-width: 380px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.login-brand { text-align: center; margin-bottom: 28px; }
.login-brand h1 { font-size: 24px; font-weight: 700; color: var(--forest); }
.login-brand span { font-size: 13px; color: var(--text-muted); letter-spacing: 1px; }
.login-field { margin-bottom: 16px; }
.login-error {
  color: #c0392b; font-size: 13px; min-height: 20px;
  text-align: center; margin-bottom: 8px;
}
.btn-login {
  font-family: inherit; font-size: 14px; font-weight: 600;
  width: 100%; padding: 12px; background: var(--forest); color: var(--white);
  border: none; border-radius: var(--radius); cursor: pointer;
  transition: background 0.2s ease;
}
.btn-login:hover { background: var(--forest-dark); }

/* ---- Toast ---- */
.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--forest-dark); border: 1.5px solid var(--gold);
  color: var(--white); padding: 12px 24px;
  font-family: inherit; font-size: 13px; font-weight: 500;
  border-radius: var(--radius); z-index: 10001; opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- Responsive ---- */
@media (min-width: 480px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .table-map { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(7, 1fr); }
  .table-map { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
  .table-map { grid-template-columns: repeat(5, 1fr); }
}


/* --- Settings: senhas por area --- */
.pw-row {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 14px 0; border-bottom: 1px solid #eee;
}
.pw-row:last-of-type { border-bottom: none; }
.pw-row-info { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 2px; }
.pw-row-info strong { font-size: 14px; font-weight: 600; }
.pw-row-info span { font-size: 12px; color: #888; }
.pw-row input {
  width: 220px; padding: 10px 12px; font-size: 14px;
  border: 1px solid #ddd; border-radius: 6px; outline: none;
}
.pw-row input:focus { border-color: var(--gold, #C9A84C); }
.pw-row-default {
  background: #faf7f0; border: 1px solid #eee; border-radius: 8px;
  padding: 14px; margin-bottom: 8px;
}
@media (max-width: 600px) {
  .pw-row input { width: 100%; }
}


/* --- ajustes finais: preto no lugar do verde --- */
.btn-add-code, .btn-login, .btn-export, .tab.active { border-color: var(--ink); }
.btn-add-code, .btn-login { background: var(--ink) !important; color: #fff !important; }
.btn-add-code:hover, .btn-login:hover { background: #000 !important; }
.badge-yes { background: rgba(17,17,19,0.06); color: var(--ink); }
.stat-number, .login-brand h1, .codes-info-box strong, .door-number,
.gallery-pw-display strong, .table-count { color: var(--ink) !important; }
.capacity-fill, .table-fill { background: var(--ink) !important; }
.table-card.table-full { border-color: var(--ink); background: rgba(17,17,19,0.03); }

.codes-form-card, .planning-settings, .gallery-config-box, .codes-info-box,
.table-wrap, .door-list-section {
  border-radius: 14px; box-shadow: var(--shadow-sm); border-color: var(--gray-200);
}
.dash-header { box-shadow: var(--shadow-sm); }
table th {
  font-size: 11px; letter-spacing: 0.6px; text-transform: uppercase;
  color: var(--text-muted); font-weight: 600;
}
tbody tr:hover { background: #FAFAFA; }

/* enquanto carrega, so o skeleton aparece */
.tab-content.is-loading > *:not(.skeleton-wrap) { display: none; }


/* --- Seletor de evento (multi-evento) --- */
.event-switcher { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.event-switcher select {
  width: auto; min-width: 150px; max-width: 260px;
  padding: 5px 26px 5px 10px; font-size: 12.5px; font-weight: 500;
  border: 1px solid var(--gray-200); border-radius: 8px;
  background: var(--white); color: var(--text-dark); cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%23888' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center;
}
.event-switcher select:hover { border-color: var(--gray-300); }
.btn-new-event {
  font-family: inherit; font-size: 12px; font-weight: 600;
  padding: 6px 11px; border-radius: 8px; cursor: pointer;
  background: var(--white); color: var(--text-muted);
  border: 1px dashed var(--gray-300); transition: all 0.18s ease;
}
.btn-new-event:hover { color: var(--ink); border-color: var(--ink); border-style: solid; }

/* --- Modal generico --- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(17,17,19,0.45); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal-card {
  background: var(--white); border-radius: 16px; padding: 28px;
  width: 100%; max-width: 460px; box-shadow: 0 20px 60px rgba(17,17,19,0.25);
  max-height: 90vh; overflow-y: auto;
}
.modal-card h3 { font-size: 19px; font-weight: 700; color: var(--ink); }
.modal-sub { font-size: 13px; color: var(--text-muted); margin: 4px 0 18px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; }
.modal-actions button { padding: 10px 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-hint { font-weight: 400; color: var(--text-muted); text-transform: none; letter-spacing: 0; }

/* ==========================================
   DataTable: toolbar, filtros e paginacao
   ========================================== */
.dt-toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.dt-search {
  position: relative; flex: 1; min-width: 190px; max-width: 320px;
}
.dt-search svg {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  width: 15px; height: 15px; color: var(--text-muted); pointer-events: none;
}
.dt-search input {
  width: 100%; padding: 9px 12px 9px 33px; font-size: 13px;
  border: 1px solid var(--gray-200); border-radius: 999px; background: var(--white);
}
.dt-search input:focus { border-color: var(--ink); box-shadow: none; }
.dt-search input::-webkit-search-cancel-button { cursor: pointer; }

.dt-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.dt-filter {
  width: auto; padding: 8px 28px 8px 12px; font-size: 12.5px; font-weight: 500;
  border: 1px solid var(--gray-200); border-radius: 999px;
  background: var(--white); color: var(--text-body); cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%23888' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.dt-filter:hover { border-color: var(--gray-300); }

.dt-count { margin-left: auto; font-size: 12px; color: var(--text-muted); font-weight: 500; }

.dt-pager {
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
  margin-top: 14px; justify-content: flex-end;
}
.dt-range { margin-right: auto; font-size: 12px; color: var(--text-muted); }
.dt-page-btn {
  min-width: 32px; height: 32px; padding: 0 8px;
  font-family: inherit; font-size: 12.5px; font-weight: 600;
  background: var(--white); color: var(--text-body);
  border: 1px solid var(--gray-200); border-radius: 8px; cursor: pointer;
  transition: all 0.15s ease;
}
.dt-page-btn:hover:not(:disabled) { border-color: var(--ink); color: var(--ink); }
.dt-page-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.dt-page-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.dt-gap { color: var(--text-muted); padding: 0 2px; }

/* celulas */
.cell-sub { display: block; font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.col-thumb { width: 54px; }
.gift-thumb {
  width: 40px; height: 40px; border-radius: 8px; object-fit: cover;
  background: var(--gray-100); display: flex; align-items: center; justify-content: center;
}
.gift-thumb-emoji { font-size: 20px; }
.row-muted { opacity: 0.5; }

.badge-muted { background: var(--gray-100); color: var(--text-muted); }
.badge-gold { background: rgba(201,168,76,0.16); color: #8a6d1f; }

.btn-mini {
  display: inline-block; font-family: inherit; font-size: 11.5px; font-weight: 600;
  padding: 5px 10px; margin-right: 4px; border-radius: 7px; cursor: pointer;
  background: var(--white); color: var(--text-body);
  border: 1px solid var(--gray-200); text-decoration: none; transition: all 0.15s ease;
}
.btn-mini:hover { border-color: var(--ink); color: var(--ink); }
.btn-mini.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }

.btn-star {
  background: none; border: none; cursor: pointer;
  font-size: 19px; line-height: 1; color: var(--gray-300); transition: all 0.15s ease;
}
.btn-star:hover { color: var(--gold); transform: scale(1.15); }
.btn-star.is-on { color: var(--gold); }

/* switch de visibilidade */
.switch { position: relative; display: inline-block; width: 36px; height: 20px; cursor: pointer; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span {
  position: absolute; inset: 0; background: var(--gray-300);
  border-radius: 999px; transition: background 0.2s ease;
}
.switch span::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; background: #fff; border-radius: 50%;
  transition: transform 0.2s ease;
}
.switch input:checked + span { background: var(--ink); }
.switch input:checked + span::after { transform: translateX(16px); }

/* cabecalho de secao com botao */
.section-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
}
.section-head h3 { margin-bottom: 2px; }

/* formulario do presente */
.type-toggle { display: flex; gap: 8px; margin-bottom: 16px; }
.type-option { flex: 1; cursor: pointer; }
.type-option input { display: none; }
.type-option span {
  display: block; text-align: center; padding: 12px 8px;
  font-size: 13px; font-weight: 500; color: var(--text-body);
  border: 1.5px solid var(--gray-200); border-radius: 10px; transition: all 0.18s ease;
}
.type-option input:checked + span {
  border-color: var(--ink); background: rgba(17,17,19,0.04); color: var(--ink); font-weight: 600;
}

.image-picker { display: flex; align-items: center; gap: 12px; }
.image-preview {
  width: 72px; height: 72px; border-radius: 10px; overflow: hidden; flex-shrink: 0;
  background: var(--gray-100); border: 1px dashed var(--gray-300);
  display: flex; align-items: center; justify-content: center;
  font-size: 10.5px; color: var(--text-muted); text-align: center;
}
.image-preview img { width: 100%; height: 100%; object-fit: cover; }
.image-actions { display: flex; flex-direction: column; gap: 6px; }
.image-actions button { padding: 7px 12px; font-size: 12px; }

.check-row {
  display: flex; align-items: center; gap: 8px; margin-top: 14px;
  font-size: 13px; color: var(--text-body); cursor: pointer;
}
.check-row input { width: auto; }

/* botoes secundarios seguem o preto do painel */
.btn-copy {
  background: var(--white) !important; color: var(--text-body) !important;
  border: 1px solid var(--gray-200) !important; font-weight: 600;
}
.btn-copy:hover { border-color: var(--ink) !important; color: var(--ink) !important; }


/* ---- Emoji picker ---- */
.emoji-wrap { position: relative; display: flex; align-items: center; }
.emoji-wrap input { padding-right: 40px !important; }
.emoji-trigger {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 8px; cursor: pointer;
  background: var(--gray-100); border: 1px solid var(--gray-200);
  font-size: 15px; line-height: 1; transition: all 0.15s ease;
}
.emoji-trigger:hover { background: var(--white); border-color: var(--ink); }

.emoji-panel {
  position: absolute; z-index: 40; top: calc(100% + 6px); right: 0;
  width: 290px; display: none;
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: 12px; box-shadow: 0 12px 34px rgba(17,17,19,0.16);
  overflow: hidden;
}
.emoji-panel.open { display: block; }

.emoji-search { padding: 8px; border-bottom: 1px solid var(--gray-200); }
.emoji-search input { font-size: 12.5px; padding: 7px 10px; border-radius: 8px; }

.emoji-tabs {
  display: flex; gap: 2px; padding: 6px 8px;
  border-bottom: 1px solid var(--gray-200); overflow-x: auto;
}
.emoji-tab {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 7px; cursor: pointer;
  background: none; border: none; font-size: 15px; line-height: 1; opacity: 0.5;
  transition: all 0.15s ease;
}
.emoji-tab:hover { opacity: 1; background: var(--gray-100); }
.emoji-tab.active { opacity: 1; background: var(--gray-100); }

.emoji-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px;
  padding: 8px; max-height: 190px; overflow-y: auto;
}
.emoji-item {
  aspect-ratio: 1; border: none; background: none; cursor: pointer;
  font-size: 19px; line-height: 1; border-radius: 7px; transition: all 0.12s ease;
}
.emoji-item:hover { background: var(--gray-100); transform: scale(1.18); }
.emoji-none { grid-column: 1/-1; text-align: center; font-size: 12px; color: var(--text-muted); padding: 16px 0; }

.emoji-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 10px; border-top: 1px solid var(--gray-200); background: var(--gray-50);
}
.emoji-clear {
  background: none; border: none; cursor: pointer;
  font-size: 11.5px; font-weight: 600; color: var(--text-muted); font-family: inherit;
}
.emoji-clear:hover { color: var(--ink); }
.emoji-hint { font-size: 11px; color: var(--text-muted); }

/* ---- Modal "quem pegou" ---- */
.badge-btn {
  border: none; cursor: pointer; font-family: inherit; font-size: 11px;
  transition: all 0.15s ease;
}
.badge-btn:hover { background: var(--ink); color: #fff; }

.taken-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.taken-icon {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 10px;
  background: var(--gray-100); display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.taken-head h3 { font-size: 18px; }
.taken-head .modal-sub { margin: 2px 0 0; }

.taken-list { display: flex; flex-direction: column; gap: 10px; max-height: 46vh; overflow-y: auto; }
.taken-item {
  border: 1px solid var(--gray-200); border-radius: 10px; padding: 12px 14px;
  background: var(--gray-50);
}
.taken-item-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.taken-item-top strong { font-size: 14px; color: var(--text-dark); }
.taken-amount { font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.taken-contact {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px;
  font-size: 12px; color: var(--text-muted);
}
.taken-contact a { color: var(--text-body); text-decoration: none; }
.taken-contact a:hover { color: var(--ink); text-decoration: underline; }
.taken-date { margin-left: auto; }
.taken-note {
  margin-top: 8px; font-size: 12.5px; font-style: italic; color: var(--text-body);
  border-left: 2px solid var(--gray-300); padding-left: 10px;
}

/* ==========================================
   Floor Plan
   ========================================== */
.fp-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.fp-actions .btn-mini { margin-right: 0; }

.fp-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 10px;
  font-size: 13px; color: var(--text-body);
}
.fp-bar strong { color: var(--ink); }

.fp-save { font-size: 11.5px; font-weight: 600; color: transparent; transition: color 0.2s ease; }
.fp-save.saving { color: var(--text-muted); }
.fp-save.saved  { color: #2f8f4e; }
.fp-save.error  { color: #c0392b; }

.fp-warning {
  font-size: 12.5px; font-weight: 500; color: #c0392b;
  background: #fdf0ef; border: 1px solid #f3d5d2;
  padding: 8px 12px; border-radius: 8px; margin-bottom: 10px;
}

.fp-layout { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 900px) { .fp-layout { grid-template-columns: 1fr 230px; } }

.fp-stage-wrap { min-width: 0; }
.fp-stage {
  position: relative; width: 100%; aspect-ratio: 16 / 10;
  background:
    linear-gradient(rgba(17,17,19,0.045) 1px, transparent 1px) 0 0 / 100% 5%,
    linear-gradient(90deg, rgba(17,17,19,0.045) 1px, transparent 1px) 0 0 / 5% 100%,
    var(--gray-50);
  border: 1px solid var(--gray-200); border-radius: 14px;
  overflow: hidden; touch-action: none; user-select: none;
}
.fp-stage.is-seating { background-color: rgba(201,168,76,0.08); }
.fp-stage.is-dragging { cursor: grabbing; }

.fp-empty {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px; color: var(--text-muted);
}
.fp-empty span { font-size: 30px; }
.fp-empty p { font-size: 14px; font-weight: 600; color: var(--text-body); }
.fp-empty small { font-size: 12px; }

.fp-item {
  position: absolute; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1px;
  background: var(--white); border: 2px solid var(--ink);
  cursor: grab; transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.06s ease;
  box-shadow: 0 2px 8px rgba(17,17,19,0.08);
}
.fp-item.fp-round { border-radius: 50%; }
.fp-item.fp-rect  { border-radius: 10px; }
.fp-item.dragging { cursor: grabbing; box-shadow: 0 10px 26px rgba(17,17,19,0.22); transform: scale(1.04); z-index: 20; }
.fp-item.is-full  { border-color: #2f8f4e; }
.fp-item.is-over  { border-color: #c0392b; background: #fdf0ef; }

.fp-item.fp-fixture {
  background: var(--ink); border-color: var(--ink); color: #fff;
}
.fp-fixture-icon { font-size: 15px; line-height: 1; }

.fp-label { font-size: 11px; font-weight: 700; line-height: 1.1; text-align: center; padding: 0 4px; }
.fp-seats { font-size: 10.5px; font-weight: 600; color: var(--text-muted); }
.fp-item.is-over .fp-seats { color: #c0392b; }

.fp-stage.is-seating .fp-item:not(.fp-fixture):hover {
  border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,168,76,0.25);
}

/* cadeiras ao redor */
.fp-chairs { position: absolute; inset: -9%; pointer-events: none; }
.fp-chair {
  position: absolute; top: 50%; left: 50%; width: 7px; height: 7px;
  margin: -3.5px 0 0 -3.5px; border-radius: 50%;
  background: var(--gray-300); transform-origin: 50% 50%;
  box-shadow: 0 0 0 1px var(--white);
}
.fp-chair.taken { background: var(--ink); }

.fp-tip { font-size: 11.5px; color: var(--text-muted); margin-top: 8px; text-align: center; }

/* lateral de convidados */
.fp-side {
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: 12px; padding: 14px;
}
.fp-side h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-muted); margin-bottom: 10px; }
.fp-seat-hint {
  font-size: 12px; font-weight: 600; color: #8a6d1f;
  background: rgba(201,168,76,0.16); padding: 7px 10px; border-radius: 8px; margin-bottom: 10px;
}
.fp-guest-list { display: flex; flex-direction: column; gap: 6px; max-height: 340px; overflow-y: auto; }
.fp-guest {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; padding: 9px 11px; cursor: pointer; font-family: inherit;
  background: var(--white); border: 1px solid var(--gray-200); border-radius: 9px;
  font-size: 12.5px; color: var(--text-body); text-align: left; transition: all 0.15s ease;
}
.fp-guest:hover { border-color: var(--ink); }
.fp-guest.selected { background: var(--ink); color: #fff; border-color: var(--ink); }
.fp-guest-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-guest-count {
  flex-shrink: 0; font-weight: 700; font-size: 11px;
  background: var(--gray-100); color: var(--text-body); padding: 1px 7px; border-radius: 999px;
}
.fp-guest.selected .fp-guest-count { background: rgba(255,255,255,0.2); color: #fff; }
.fp-none { font-size: 12px; color: var(--text-muted); text-align: center; padding: 12px 0; }

/* modal da mesa */
.tf-sub { font-size: 12px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-muted); margin: 18px 0 8px; }
.tf-guests { display: flex; flex-direction: column; gap: 6px; max-height: 160px; overflow-y: auto; }
.tf-guest {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 11px; background: var(--gray-50);
  border: 1px solid var(--gray-200); border-radius: 8px; font-size: 13px;
}
.tf-guest em { color: var(--text-muted); font-style: normal; font-size: 12px; }
#tableFormModal .modal-actions { justify-content: space-between; }
#tableFormModal .modal-actions .btn-delete { margin-right: auto; }

.fp-count { color: var(--text-body); font-weight: 700; }
.fp-howto { font-size: 11.5px; color: var(--text-muted); margin-bottom: 10px; line-height: 1.4; }
.fp-none .btn-mini { margin-top: 8px; }


/* ---- Lista agrupada por mesa + drag & drop ---- */
.fp-group {
  border: 1px solid var(--gray-200); border-radius: 10px;
  background: var(--white); margin-bottom: 8px; overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.fp-group-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 11px; background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  font-size: 11.5px; font-weight: 700; color: var(--text-body);
}
.fp-group-count {
  font-size: 10.5px; font-weight: 700; color: var(--text-muted);
  background: var(--white); border: 1px solid var(--gray-200);
  padding: 1px 7px; border-radius: 999px;
}
.fp-group-body { padding: 8px; display: flex; flex-direction: column; gap: 6px; min-height: 40px; }
.fp-group-waiting .fp-group-head { background: var(--ink); color: #fff; border-color: var(--ink); }
.fp-group-waiting .fp-group-count { background: rgba(255,255,255,0.16); border-color: transparent; color: #fff; }
.fp-group.is-full .fp-group-head { color: #2f8f4e; }
.fp-group.is-over .fp-group-head { color: #c0392b; background: #fdf0ef; }

.fp-group.drop-hover, .fp-item.drop-hover {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.25);
}
.fp-none-drop { font-style: italic; opacity: 0.7; }

.fp-guest { cursor: grab; }
.fp-guest.dragging { opacity: 0.45; cursor: grabbing; }
body.fp-dragging .fp-item:not(.fp-fixture) {
  border-style: dashed; border-color: var(--gold);
}


/* ---- alca de redimensionar ---- */
.fp-resize {
  position: absolute; right: -5px; bottom: -5px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--ink);
  cursor: nwse-resize; opacity: 0; transition: opacity 0.15s ease;
  z-index: 3;
}
.fp-item:hover .fp-resize, .fp-item.resizing .fp-resize { opacity: 1; }
.fp-item.fp-fixture .fp-resize { border-color: var(--gold); }
.fp-item.resizing { box-shadow: 0 0 0 3px rgba(201,168,76,0.3); z-index: 20; }

/* ---- contorno do salao ---- */
.fp-room { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.fp-room.is-editing { pointer-events: none; }

.fp-room-shape {
  fill: rgba(255,255,255,0.94);
  stroke: var(--ink); stroke-width: 2; stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.fp-room-line {
  fill: rgba(201,168,76,0.10);
  stroke: var(--gold); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.fp-room-guide {
  stroke: var(--gold); stroke-width: 1.5; stroke-dasharray: 4 3;
  vector-effect: non-scaling-stroke; opacity: 0.9;
}
.fp-room-guide.faint { opacity: 0.35; }

/* pontos em HTML: sempre redondos e faceis de pegar */
.fp-room-handles { position: absolute; inset: 0; z-index: 6; pointer-events: none; }

.rm-dot {
  position: absolute; width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px;
  border-radius: 50%; background: var(--white); border: 2px solid var(--ink);
  box-shadow: 0 1px 4px rgba(17,17,19,0.25);
  transition: transform 0.12s ease, background 0.12s ease;
}
.rm-dot.editable { pointer-events: all; cursor: grab; }
.rm-dot.editable:hover { background: var(--gold); border-color: var(--gold); transform: scale(1.25); }
.rm-dot.selected {
  background: var(--gold); border-color: var(--ink); transform: scale(1.3);
  box-shadow: 0 0 0 4px rgba(201,168,76,0.3);
}
.rm-dot.closing {
  pointer-events: all; cursor: pointer; background: var(--gold); border-color: var(--gold);
  animation: rmPulse 1.2s ease infinite;
}
@keyframes rmPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0.55); }
  50%      { box-shadow: 0 0 0 7px rgba(201,168,76,0); }
}

.rm-mid {
  position: absolute; width: 17px; height: 17px; margin: -8.5px 0 0 -8.5px;
  border-radius: 50%; cursor: copy; pointer-events: all;
  background: var(--white); border: 1.5px dashed var(--gold); color: var(--gold-dark, #8a6d1f);
  font: 700 12px/1 'Poppins', sans-serif; padding: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0.55; transition: all 0.14s ease;
}
.rm-mid:hover { opacity: 1; border-style: solid; transform: scale(1.2); }

.fp-stage.is-drawing { cursor: crosshair; }
.fp-stage.is-drawing .fp-item { pointer-events: none; opacity: 0.25; }
.fp-stage.is-editing-room .fp-item { pointer-events: none; opacity: 0.4; }
.fp-stage.is-editing-room .fp-room { pointer-events: none; }

/* barra de edicao do salao */
.fp-room-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex-wrap: wrap; margin-bottom: 8px; padding: 8px 11px;
  background: rgba(201,168,76,0.12); border: 1px solid rgba(201,168,76,0.4);
  border-radius: 9px;
}
.fp-room-info { font-size: 12px; font-weight: 600; color: #8a6d1f; }
.fp-room-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fp-room-tools .btn-mini, .fp-room-tools .btn-add-code { margin-right: 0; }
.fp-room-tools .btn-add-code { padding: 6px 14px; font-size: 12px; }
.fp-room-presets {
  display: flex; gap: 3px; padding-right: 8px; margin-right: 2px;
  border-right: 1px solid rgba(201,168,76,0.45);
}
.fp-room-presets .btn-mini { min-width: 30px; text-align: center; font-weight: 700; }
#fpDrawBtn.is-on { background: var(--gold); color: #fff; border-color: var(--gold); }

/* ---- quem esta na mesa (hover) ---- */
.fp-pop {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(4px);
  min-width: 140px; max-width: 210px; padding: 8px 10px;
  background: var(--ink); color: #fff; border-radius: 9px;
  font-size: 11.5px; line-height: 1.45; text-align: left;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
  box-shadow: 0 8px 22px rgba(17,17,19,0.28); z-index: 30;
}
.fp-pop::after {
  content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: var(--ink);
}
.fp-pop strong { display: block; font-size: 11px; letter-spacing: 0.4px; margin-bottom: 4px; opacity: 0.75; }
.fp-pop-row { display: flex; justify-content: space-between; gap: 8px; }
.fp-pop-row em { font-style: normal; opacity: 0.65; }
.fp-pop-empty { opacity: 0.6; font-style: italic; }
.fp-item:hover .fp-pop { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.fp-item.dragging .fp-pop, .fp-item.resizing .fp-pop { display: none; }

.fp-side.drop-hover {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.25);
}
.tf-sub-count { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--text-muted); }


/* ---- quantas pessoas do grupo arrastar ---- */
.fp-take {
  display: inline-flex; align-items: center; gap: 1px; flex-shrink: 0;
  background: var(--gray-100); border-radius: 999px; padding: 1px 2px;
}
.fp-take-btn {
  width: 17px; height: 17px; border-radius: 50%; cursor: pointer;
  background: var(--white); border: 1px solid var(--gray-200);
  font: 700 11px/1 'Poppins', sans-serif; color: var(--text-body); padding: 0;
  display: flex; align-items: center; justify-content: center;
}
.fp-take-btn:hover:not(:disabled) { background: var(--ink); color: #fff; border-color: var(--ink); }
.fp-take-btn:disabled { opacity: 0.3; cursor: default; }
.fp-take-n { min-width: 13px; text-align: center; font-size: 11.5px; font-weight: 700; color: var(--ink); }
.fp-take-of { font-size: 10px; color: var(--text-muted); padding-right: 3px; }

.fp-guest.partial { border-color: var(--gold); background: rgba(201,168,76,0.08); }
.fp-guest.selected .fp-take { background: rgba(255,255,255,0.18); }
.fp-guest.selected .fp-take-n { color: #fff; }


/* ---- formulario de RSVP ---- */
.rf-guests { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.rf-guest {
  border: 1px solid var(--gray-200); border-radius: 10px;
  padding: 10px 12px; background: var(--gray-50);
}
.rf-guest-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-bottom: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.6px;
  text-transform: uppercase; color: var(--text-muted);
}
.rf-guest-head .btn-mini { margin-right: 0; }
.rf-guest .field-row { gap: 8px; }
.rf-guest .field-row + .field-row { margin-top: 8px; }
.rf-guest input { font-size: 13px; padding: 8px 11px; }


.cf-warning {
  font-size: 12px; font-weight: 500; color: #8a6d1f;
  background: rgba(201,168,76,0.14); border: 1px solid rgba(201,168,76,0.4);
  border-radius: 8px; padding: 8px 11px; margin-top: 12px;
}


/* ---- resumo dos recebidos ---- */
.gift-totals { display: flex; gap: 8px; flex-wrap: wrap; }
.gt-item {
  display: flex; align-items: baseline; gap: 6px;
  padding: 7px 13px; border-radius: 999px;
  background: var(--gray-100); border: 1px solid var(--gray-200);
  font-size: 12.5px; color: var(--text-body);
}
.gt-item em { font-style: normal; font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-muted); }
.gt-item strong { font-size: 14px; color: var(--ink); }
.gt-ok { background: rgba(47,143,78,0.08); border-color: rgba(47,143,78,0.25); }
.gt-ok strong { color: #2f8f4e; }


#payInfoInput { min-height: 92px; resize: vertical; font-size: 13.5px; line-height: 1.6; }
.pay-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.pay-hint { font-size: 12px; color: var(--text-muted); }
