/* EVBro — Ajustes on a phone: padding and submenu.
   Standalone sheet: the load ORDER (templates/index.html) follows the original cascade; do not change it. */

/* Ajustes on a phone: less nested padding so the text is not squeezed into a narrow column */
@media (max-width: 600px) {
  #tabSettings .details-card { padding: 16px 14px; }
  .notif-trigger-card { padding: 12px; gap: 10px; }
  .notif-trigger-left { gap: 10px; min-width: 0; }
  .notif-trigger-icon { width: 34px; height: 34px; font-size: 1.05rem; }
  .notif-trigger-title { font-size: 0.9rem; }
  .notif-trigger-desc { font-size: 0.76rem; }
}

/* Ajustes submenu: the 5 sections fit the phone width (icon above text) */
@media (max-width: 600px) {
  .settings-sub-nav { gap: 2px; overflow-x: visible; }
  .settings-sub-nav .sub-nav-btn {
    flex: 1 1 0; min-width: 0; flex-direction: column; gap: 4px;
    padding: 8px 2px; min-height: 52px; font-size: 0.7rem; justify-content: center;
  }
  .settings-sub-nav .sub-nav-btn svg { width: 20px; height: 20px; }
}
#carChannelDetail { font-size: 0.78rem; font-weight: 600; line-height: 1.35; }

/* Ajustes sections fold like the car sheet's (.vp-section in vehicle-profile.css); a status badge sits before the chevron */
#tabSettings .set-section { margin: 0; padding: 6px 16px 12px; }
/* Avisos: each channel and the list of events are sections; saving and the history stay in sight under them */
.notif-sec-badge { margin-bottom: 12px; }
.notif-sec-toggle { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.75rem; font-size: 0.9rem; cursor: pointer; }
.notif-save-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem; }
#settingsSubTabNotifs > .acc-hint { margin-bottom: 10px; }
#tabSettings .set-section:not([open]) { padding-bottom: 6px; }
#tabSettings .set-section > .vp-section-title .status-badge { margin-left: auto; flex: none; }
#tabSettings .set-section > .vp-section-title .status-badge + .vp-chev { margin-left: 6px; }
@media (max-width: 600px) { #tabSettings .set-section { padding: 6px 14px 12px; } #tabSettings .set-section:not([open]) { padding-bottom: 6px; } }

/* Position from the phone (Ajustes → Sistema) */
.pt-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--border-color); }
.pt-main { display: flex; flex-direction: column; min-width: 0; }
.pt-main strong { font-size: 0.92rem; }
.pt-main small { font-size: 0.76rem; color: var(--text-muted); overflow-wrap: anywhere; }
.pt-add { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-top: 12px; }
.pt-setup { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-secondary); border: 1px solid var(--border-color); font-size: 0.86rem; line-height: 1.45; }
.pt-setup[hidden] { display: none; }
.pt-setup h4 { margin: 0 0 6px; font-size: 0.95rem; }
.pt-setup ol { margin: 6px 0 10px 18px; padding: 0; }
.pt-url { display: flex; gap: 8px; align-items: center; margin: 6px 0; }
.pt-url code { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; font-size: 0.76rem; padding: 8px 10px; border-radius: 10px; background: var(--bg-input); border: 1px solid var(--border-color); color: var(--text-primary); }
.pt-url button { flex: none; min-height: 40px; }
@media (max-width: 480px) { .pt-add { grid-template-columns: 1fr; } }

/* Tus datos (export / import) */
.ad-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0; }
.ad-report { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--surface-secondary); border: 1px solid var(--border-color); font: inherit; font-size: 0.82rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.ad-report[hidden] { display: none; }
/* Deleting the account: what goes, said before asking for the name and the password */
.ad-delete-title { margin-bottom: 0.5rem; font-size: 1.3rem; }
.ad-delete-lead { margin: 0 0 0.5rem; font-size: 0.92rem; color: var(--text-secondary); }
.ad-delete-list { margin: 0 0 0.75rem; padding-left: 1.2rem; font-size: 0.88rem; line-height: 1.45; color: var(--text-secondary); }
.ad-delete-list li { margin-bottom: 0.25rem; }
/* Ebro account dialog: the password with its «Mostrar» button */
.acc-password-row { display: flex; gap: 8px; align-items: stretch; }
.acc-password-row .form-control { flex: 1 1 auto; min-width: 0; }
.acc-password-show { flex: 0 0 auto; min-height: 44px; padding: 0 14px; white-space: nowrap; }

/* The optional survey of the dialog: why the account is deleted */
.ad-survey { margin: 0 0 1rem; padding: 0.7rem 0.85rem 0.2rem; border: 1px solid var(--border-color); border-radius: 14px; min-width: 0; }
.ad-survey legend { padding: 0 0.4rem; font-size: 0.9rem; font-weight: 700; color: var(--text-primary); }
.ad-survey-opt { display: flex; align-items: center; gap: 0.6rem; min-height: 40px; font-size: 0.9rem; color: var(--text-primary); cursor: pointer; }
.ad-survey-opt input { flex: 0 0 auto; width: 20px; height: 20px; accent-color: var(--accent-bright); }
.ad-survey-comment { margin: 0.5rem 0 0.4rem; }
.ad-survey-comment textarea {
  width: 100%; min-height: 76px; padding: 0.7rem 0.9rem; font: inherit; font-size: 1rem; resize: vertical; box-sizing: border-box;
  color: var(--text-primary); background: var(--surface-secondary); border: 1px solid var(--border-color); border-radius: 14px; outline: none;
}
.ad-survey-comment textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.ad-survey .setting-hint { margin: 0 0 0.5rem; }
#accountDeleteModal .btn-danger:disabled { opacity: 0.45; cursor: not-allowed; filter: none; }
#adDeleteConfirmLabel { text-transform: none; font-size: 0.85rem; }   /* it shows the username: as it is written */
