/* =========================================================
   FONTES – Core Sans (OTF local)
   ========================================================= */


@font-face {
  font-family: 'CoreSans';
  src: url('../fonts/CoreSansC-45Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'CoreSans';
  src: url('../fonts/CoreSansC-55Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'CoreSans';
  src: url('../fonts/CoreSansC-65Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


/* =========================================================
   RESET BÁSICO
   ========================================================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'CoreSans', system-ui, -apple-system, BlinkMacSystemFont,
               'Segoe UI', Roboto, Arial, sans-serif;
  color: #1f2933;
  background-color: #ffffff;
}

/* =========================================================
   UTILITÁRIOS DE LAYOUT
   ========================================================= */

.max-w-screen-md {
  max-width: 720px;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   LOGÓTIPO DA CAMPANHA (PINGO DOCE)
   ========================================================= */

.campaign-logo {
  width: 100%;
  margin-top: 0;
  margin-bottom: 28px;
  line-height: 0;
}

.campaign-logo picture,
.campaign-logo img {
  display: block;
  width: 100%;
}

.campaign-logo img {
  width: 100%;
  height: auto;
}

.home-page .campaign-logo img {
  height: auto;
  object-fit: contain;
  object-position: center center;
}

.home-page .campaign-logo {
  margin-bottom: 48px;
}

/* Ajuste em mobile */
@media (max-width: 640px) {
  .campaign-logo {
    margin-bottom: 20px;
  }
}


/* =========================================================
   HEADER (TÍTULO + DESCRIÇÃO)
   ========================================================= */

.page-header {
  margin-top: 48px;
  margin-bottom: 40px;
  padding: 0 16px;
}

.home-page .page-header {
  width: 100%;
  max-width: none;
  margin-top: 0;
  margin-left: 0;
  margin-right: 0;
  padding-top: 0;
  padding-left: 0;
  padding-right: 0;
}

.text-component {
  text-align: center;
}

.text-component h1 {
  font-size: 1.75rem; /* mobile */
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 16px 0;
  letter-spacing: -0.01em;
}

/* Título */
.title {
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 32px;
}

/* Descrição da página */
.page-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #4b5563;
  max-width: 640px;
  margin: 0 auto;
}

/* =========================================================
   FORMULÁRIO
   ========================================================= */

form {
  width: 100%;
  padding: 0 16px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 1rem;
  font-weight: 400;
  color: #4b5563;
  margin-bottom: 6px;
}

.field-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.field-help-link {
  width: 24px;
  height: 24px;
  border: 1px solid #005ea8;
  border-radius: 999px;
  background: #fff;
  color: #005ea8;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.field-help-link:hover {
  background: #005ea8;
  color: #fff;
}

/* Inputs estilo Optivisão (linha inferior) */
.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="file"] {
  width: 100%;
  height: 40px;
  border: none;
  border-bottom: 1px solid #d1d5db;
  padding: 6px 4px;
  font-size: 1rem;
  font-family: inherit;
  background: transparent;
}

.form-group input:focus {
  outline: none;
  border-bottom-color: #005ea8;
}

.admin-login input[type="password"] {
  width: 100%;
 padding: 6px 4px;
  border: none;
  border-bottom: 1px solid #d1d5db;
  background: transparent;
}

/* =========================================================
   INPUT DATE – estilo consistente com o formulário
   ========================================================= */

.form-group input[type="date"],
.input-date {
  width: 100%;
  height: 40px;
  border: none;
  border-bottom: 1px solid #d1d5db;
  padding: 6px 4px;
  font-size: 1rem;
  font-family: inherit;
  background-color: transparent;
  color: #1f2933;

  /* remove estilos nativos */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* Placeholder “fake” mais suave quando vazio */
.form-group input[type="date"]:not(:focus):not(:valid) {
  color: #9ca3af;
}

/* Foco */
.form-group input[type="date"]:focus {
  outline: none;
  border-bottom-color: #005ea8;
}

/* Ícone do calendário – Chrome / Edge / Safari */
.form-group input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.6;
  cursor: pointer;
  filter: invert(22%) sepia(85%) saturate(1826%) hue-rotate(195deg);
}

/* Hover no ícone */
.form-group input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

/* Remove ícones internos estranhos (Chrome) */
.form-group input[type="date"]::-webkit-inner-spin-button,
.form-group input[type="date"]::-webkit-clear-button {
  display: none;
}

/* Firefox – alinhamento visual */
@supports (-moz-appearance: none) {
  .form-group input[type="date"] {
    padding-right: 0;
  }
}

/* =========================================================
   CHECKBOXES
   ========================================================= */

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.checkbox-group input {
  width: 18px;
  height: 18px;
}

.checkbox-group label {
  font-size: 0.9rem;
  cursor: pointer;
  color: #1f2933;
}

.checkbox-group a {
  text-decoration: underline;
  color: inherit;
}

/* =========================================================
   BOTÕES DO FORMULÁRIO
   ========================================================= */

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

.home-page .form-actions {
  margin-bottom: 100px;
}

/* Base dos botões */
.btn {
  position: relative;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 9999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  overflow: hidden;
  background: transparent;
  border: none;
  transition: color 0.3s ease;
}

/* Conteúdo acima do fundo animado */
.btn-content {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Fundo animado */
.btn-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

/* Botão primário */
.btn-primary {
  background-color: #005ea8;
  color: #ffffff;
  border: 1px solid #005ea8;
}

.btn-primary .btn-bg {
  background-color: #e5e7eb;
}

.btn-primary:hover {
  color: #1f2933;
}

.btn-primary:hover .btn-bg {
  transform: translateX(0);
}

/* Botão secundário */
.btn-secondary {
  color: #005ea8;
  padding-left: 0;
  padding-right: 0;
}

.btn-secondary .btn-bg {
  background-color: transparent;
}

.btn-secondary:hover {
  text-decoration: underline;
}

/* Estados disabled */
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

body.modal-open {
  overflow: hidden;
}

.help-modal {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: none;
}

.help-modal.is-open {
  display: block;
}

.help-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
}

.help-modal-dialog {
  position: relative;
  width: min(92%, 560px);
  margin: 6vh auto 0;
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.24);
}

.help-modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: transparent;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
}

.help-modal-dialog h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.help-modal-dialog p {
  margin: 0 0 14px;
  line-height: 1.5;
  color: #334155;
}

.help-modal-dialog img {
  width: 100%;
  max-width: 300px;
  display: block;
  margin: 0 auto;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.help-modal-actions {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}

/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (min-width: 640px) {
  .text-component h1 {
    font-size: 2.25rem;
  }

  .page-description {
    font-size: 1rem;
  }
}

@media (min-width: 1024px) {
  .page-header {
    margin-top: 64px;
    margin-bottom: 56px;
  }

  .text-component h1 {
    font-size: 2.75rem;
  }

  .page-description {
    font-size: 1.25rem;
  }
}

@media (max-width: 640px) {
  .home-page .campaign-logo {
    margin-bottom: 16px;
  }

  .home-page .text-component h1 {
    font-size: 1.45rem;
    line-height: 1.2;
    margin-bottom: 10px;
    padding: 0 12px;
  }

  .home-page .page-description {
    font-size: 1rem;
    line-height: 1.45;
    padding: 0 14px;
  }

  .home-page .title {
    font-size: 1.05rem;
    margin-bottom: 20px;
    padding: 0 14px;
  }

  .home-page form {
    padding: 0 14px;
  }

  .home-page .form-group {
    margin-bottom: 18px;
  }

  .home-page .form-group label {
    font-size: 0.95rem;
    margin-bottom: 8px;
  }

  .home-page .form-group input[type="text"],
  .home-page .form-group input[type="number"],
  .home-page .form-group input[type="tel"],
  .home-page .form-group input[type="email"],
  .home-page .form-group input[type="file"],
  .home-page .form-group input[type="date"] {
    min-height: 46px;
    font-size: 1rem;
  }

  .home-page .checkbox-group {
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
  }

  .home-page .checkbox-group input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex: 0 0 20px;
  }

  .home-page .checkbox-group label {
    font-size: 0.95rem;
    line-height: 1.4;
  }

  .field-label-row {
    flex-wrap: wrap;
    align-items: center;
  }

  .form-actions {
    flex-direction: column-reverse;
    align-items: stretch;
    margin-top: 24px;
    gap: 12px;
  }

  .btn {
    width: 100%;
    justify-content: center;
    min-height: 52px;
    font-size: 1rem;
  }

  .home-page .form-actions {
    margin-bottom: 100px;
  }
}

/* =========================================================
   RESULT PAGE
   ========================================================= */

.result-container {
  padding: 0 16px 48px;
}

.result-card {
  background-color: #f9fafb;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.result-card h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.2rem;
}

.result-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.result-list li {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.result-debug pre {
  background: #111827;
  color: #e5e7eb;
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.85rem;
}


/* =========================================================
   FILE VALIDATION MESSAGES
   ========================================================= */

   .loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-box {
  text-align: center;
  background: #fff;
  padding: 32px 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  max-width: 360px;
}

.loading-box p {
  margin-top: 16px;
  font-size: 15px;
  color: #333;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 5px solid #e0e0e0;
  border-top-color: #007a3d; /* verde Pingo Doce */
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

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

/* =========================================================
   ADMIN - AREA VISUAL
   ========================================================= */

:root {
  --admin-bg: #f4f7fb;
  --admin-surface: #ffffff;
  --admin-surface-soft: #f9fbff;
  --admin-border: #dbe4ef;
  --admin-text: #0f172a;
  --admin-muted: #4b5563;
  --admin-primary: #0b5cab;
  --admin-primary-soft: #eaf3ff;
  --admin-success: #047857;
  --admin-success-soft: #ecfdf5;
  --admin-warning: #b45309;
  --admin-warning-soft: #fff7ed;
}

.admin-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 0% 0%, #edf5ff 0%, rgba(237, 245, 255, 0) 45%),
    radial-gradient(circle at 100% 15%, #e9f8f1 0%, rgba(233, 248, 241, 0) 40%),
    var(--admin-bg);
  color: var(--admin-text);
}

.admin-container {
  width: min(96%, 1480px);
  margin: 32px auto 48px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 18px 22px;
  border: 1px solid var(--admin-border);
  border-radius: 16px;
  background: var(--admin-surface);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.admin-header h2 {
  margin: 0;
  font-size: 1.35rem;
}

.admin-header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.admin-header-logos {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.admin-header-logos img {
  height: auto;
  max-height: 60px;
  width: auto;
  display: block;
}

.admin-logout-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #c6d4e7;
  color: var(--admin-primary);
  background: #fff;
  font: inherit;
  text-decoration: none;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-link-btn {
  appearance: none;
  -webkit-appearance: none;
  background: #fff;
  font: inherit;
  color: var(--admin-primary);
  font-weight: 600;
  line-height: 1;
  margin: 0;
  white-space: nowrap;
  cursor: pointer;
}

.admin-header-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-logout-link:hover {
  background: var(--admin-primary-soft);
  border-color: #a9c6e8;
}

.admin-section {
  margin-bottom: 22px;
  border: 1px solid var(--admin-border);
  border-radius: 16px;
  background: var(--admin-surface);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.admin-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 14px 18px;
  font-size: 1.02rem;
  border-bottom: 1px solid var(--admin-border);
  background: var(--admin-surface-soft);
}

.admin-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #dce9fa;
  color: #114173;
  font-size: 0.8rem;
  font-weight: 700;
}

.admin-inline-form {
  margin: 0;
  padding: 0;
  width: auto;
  display: inline-flex;
}

.admin-header-action {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-header-action i {
  font-size: 1.05rem;
}

.admin-header-action--send {
  background: var(--admin-success-soft);
  color: var(--admin-success);
}

.admin-header-action--send:hover {
  filter: brightness(0.96);
}

.admin-header-action--download {
  background: var(--admin-primary-soft);
  color: var(--admin-primary);
}

.admin-header-action--download:hover {
  filter: brightness(0.96);
}

.admin-container table {
  width: 100%;
  border-collapse: collapse;
  background: var(--admin-surface);
  font-size: 0.92rem;
}

.admin-container thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  text-align: left;
  font-weight: 700;
  color: #21354d;
  padding: 12px 10px;
  background: #f1f6fd;
  border-bottom: 1px solid var(--admin-border);
}

.admin-container tbody td {
  padding: 10px;
  border-bottom: 1px solid #e8eef6;
  vertical-align: middle;
  color: #1e293b;
}

.admin-container tbody tr:nth-child(even) {
  background: #fbfdff;
}

.admin-container tbody tr:hover {
  background: #eef5ff;
}

.admin-container tbody tr.admin-row-low {
  background: #fee2e2 !important;
}

.admin-container tbody tr.admin-row-mid {
  background: #fef9c3 !important;
}

.admin-container tbody tr.admin-row-high {
  background: #fed7aa !important;
}

.admin-container tbody tr.admin-row-low:hover {
  background: #fecaca !important;
}

.admin-container tbody tr.admin-row-mid:hover {
  background: #fef08a !important;
}

.admin-container tbody tr.admin-row-high:hover {
  background: #fdba74 !important;
}

.admin-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.admin-actions form {
  margin: 0;
  padding: 0;
  width: auto;
}

.admin-actions button {
  width: 30px;
  height: 30px;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  line-height: 1;
  transition: all 0.16s ease;
}

.admin-actions button i {
  font-size: 1rem;
  vertical-align: middle;
}

.action-view i {
  color: #4b5563;
}

.action-view:hover {
  background-color: var(--admin-primary-soft);
}

.action-view:hover i {
  color: var(--admin-primary);
}

.action-approve i {
  color: var(--admin-success);
}

.action-approve:hover {
  background-color: var(--admin-success-soft);
}

.action-edit i {
  color: #6b21a8;
}

.action-edit:hover {
  background: #f3e8ff;
}

.action-send i {
  color: var(--admin-primary);
}

.action-send:hover {
  background: var(--admin-primary-soft);
}

.action-revert i {
  color: var(--admin-warning);
}

.action-revert:hover {
  background-color: var(--admin-warning-soft);
}

.admin-auth-page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(15, 23, 42, 0.32), rgba(15, 23, 42, 0.32)),
    url('/images/MICROSITE_1920x1080.png') top center / cover no-repeat fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.admin-login-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-login {
  width: min(94%, 460px);
  padding: 28px 24px;
  border: 1px solid var(--admin-border);
  border-radius: 18px;
  background: var(--admin-surface);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.11);
}

.admin-login-logo {
  width: 100%;
  margin: 0 0 14px;
  line-height: 0;
  display: flex;
  justify-content: center;
}

.admin-login-logo img {
  width: min(100%, 300px);
  height: auto;
  display: block;
}

.admin-login h1 {
  margin-top: 0;
  margin-bottom: 8px;
}

.admin-login-subtitle {
  margin: 0 0 20px;
  color: var(--admin-muted);
  font-size: 0.95rem;
}

.admin-login .error {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #f5c2c7;
  background: #fff1f2;
  color: #9f1239;
}

.admin-form {
  padding: 0;
}

.admin-notice-success,
.admin-notice-error {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
}

.admin-notice-success {
  color: #065f46;
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.admin-notice-error {
  color: #9f1239;
  background: #fff1f2;
  border-color: #fecdd3;
}

.admin-edit-section {
  padding-bottom: 18px;
}

.admin-edit-form {
  max-width: none;
  width: 100%;
  padding: 18px;
}

.admin-edit-layout {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(520px, 1.15fr);
  gap: 18px;
  align-items: start;
}

.admin-edit-main,
.admin-edit-side {
  min-width: 0;
}

.admin-invoice-preview-wrap {
  padding: 18px;
}

.admin-invoice-image {
  width: 100%;
  max-height: 720px;
  object-fit: contain;
  border: 1px solid #dbe4ef;
  border-radius: 10px;
  background: #f8fafc;
}

.admin-invoice-pdf {
  width: 100%;
  height: clamp(760px, 78vh, 1100px);
  border: 1px solid #dbe4ef;
  border-radius: 10px;
  background: #fff;
}

.admin-decision-btn {
  width: 100%;
  margin-top: 12px;
}

.admin-decision-btn-reject {
  justify-content: center;
}

.admin-delete-icon-btn {
  margin-top: 14px;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid #fecaca;
  background: #fff1f2;
  color: #b91c1c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.admin-delete-icon-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-delete-icon-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
}

.admin-select {
  width: 100%;
  height: 42px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: #1f2937;
  font: inherit;
}

.admin-form-divider {
  width: 100%;
  height: 1px;
  background: #dbe4ef;
  margin: 12px 0 16px;
}

.admin-edit-form input[readonly] {
  color: #9ca3af;
  background: #f8fafc;
  border-color: #d1d5db;
  cursor: not-allowed;
}

.admin-edit-actions {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-template-form-wrap {
  padding: 18px;
}

.admin-template-form-wrap p {
  margin: 0 0 12px;
  color: var(--admin-muted);
  font-size: 0.95rem;
}

.admin-template-form {
  width: 100%;
  max-width: none;
  padding: 0;
}

.admin-template-form .admin-template-textarea {
  display: block;
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 220px;
  border: 1px solid #d7e2ef;
  border-radius: 10px;
  padding: 12px;
  resize: vertical;
  font: inherit;
  line-height: 1.5;
  color: #1e293b;
  background: #fff;
}

.admin-template-form .admin-template-textarea:focus {
  outline: 2px solid rgba(11, 92, 171, 0.18);
  border-color: #8eb4df;
}

.admin-template-form .form-group {
  margin-top: 14px;
}

.admin-template-actions {
  margin-top: 14px;
}

.admin-invoice-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-qr-result {
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid #dbe4ef;
  border-radius: 10px;
  background: #f8fafc;
  color: #0f172a;
  font-weight: 600;
}

.admin-template-dropdown {
  margin-top: 12px;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.admin-template-dropdown summary {
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 700;
  color: #12365f;
  background: #f6f9fe;
}

.admin-template-dropdown[open] summary {
  border-bottom: 1px solid var(--admin-border);
}

.admin-template-dropdown-content {
  padding: 14px;
}

@media (max-width: 1100px) {
  .admin-container {
    width: min(98%, 1480px);
  }

  .admin-edit-layout {
    grid-template-columns: 1fr;
  }

  .admin-section {
    overflow-x: auto;
  }

  .admin-container table {
    min-width: 1100px;
  }
}

@media (max-width: 700px) {
  .admin-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-header-brand {
    flex-wrap: wrap;
  }

  .admin-header-logos img {
    height: auto;
    max-height: 150px;
  }

  .admin-header-links {
    width: 100%;
    flex-wrap: wrap;
  }
}
