/* ZenCaps | Configurações administrativas.
   Camada visual. Formulários, autenticação, backups, dados e PDFs preservados. */
@media screen{
  .settings-shell{
    --zs-line:#dce9df;--zs-ink:#1c432e;--zs-muted:#6b8170;
    max-width:1680px;padding:14px clamp(20px,2.7vw,46px) 54px;
  }
  .settings-shell .page-heading{
    align-items:center;margin:0 0 19px;
    min-height:69px;gap:13px 24px;
  }
  .settings-shell .page-heading .eyebrow{
    margin:0 0 7px;font-size:10px;color:#12884d;
    letter-spacing:.11em;font-weight:850;
  }
  /* O tema anterior ocultava Configurações para leitores visuais. */
  .settings-shell .page-heading h1{
    position:static;display:block;clip:auto;clip-path:none;
    width:auto;height:auto;margin:0;padding:0;overflow:visible;
    white-space:normal;border:0;
    color:#173c28;font-size:clamp(23px,2.15vw,31px);
    font-weight:850;letter-spacing:-.043em;line-height:1.2;
  }
  .settings-shell .page-heading p{
    color:var(--zs-muted);max-width:790px;margin-top:7px;
    font-size:12px;line-height:1.55;
  }
  .settings-shell .zen-settings-layout{
    display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);
    align-items:start;gap:15px;
  }
  .settings-shell .zen-settings-layout .settings-column{
    display:flex;flex-direction:column;gap:15px;min-width:0;
  }
  .settings-shell .zen-settings-layout .settings-card{
    position:relative;min-width:0;margin:0;padding:19px 20px 20px;
    background:#fff;border:1px solid var(--zs-line);border-radius:16px;
    box-shadow:0 2px 8px rgba(27,66,36,.03),0 13px 28px rgba(27,66,36,.055);
  }
  .settings-shell .zen-settings-card-top{
    display:flex;align-items:center;justify-content:space-between;
    min-height:33px;gap:10px;margin-bottom:3px;
  }
  .settings-shell .zen-settings-card-eyebrow{
    color:#238f54;font-size:9.5px;font-weight:850;
    letter-spacing:.105em;line-height:1.5;
  }
  .settings-shell .zen-settings-card-icon{
    display:grid;place-items:center;flex:0 0 36px;
    width:36px;height:36px;border-radius:11px;
    color:#188d53;background:#e6f6eb;
  }
  .settings-shell .zen-settings-password .zen-settings-card-icon{
    background:#e8f2ff;color:#467bb6;
  }
  .settings-shell .zen-settings-backup .zen-settings-card-icon{
    background:#eaf5ed;color:#2b925b;
  }
  .settings-shell .zen-settings-import .zen-settings-card-icon{
    background:#edf3fe;color:#557eae;
  }
  .settings-shell .zen-settings-maintenance .zen-settings-card-icon{
    background:#fff3e2;color:#a77526;
  }
  .settings-shell .zen-settings-layout .settings-card>h2,
  .settings-shell .zen-password-settings h3{
    margin:0 0 5px;color:#224833;
    font-size:15px;font-weight:850;line-height:1.35;
    letter-spacing:-.024em;
  }
  .settings-shell .zen-settings-layout .settings-card>p,
  .settings-shell .zen-password-settings>p{
    color:#6d8273;font-size:11px;line-height:1.55;
    margin:0 0 17px;max-width:720px;
  }
  .settings-shell .zen-settings-layout .form-grid{gap:13px 14px}
  .settings-shell .zen-settings-layout .field label{
    color:#486853;font-size:10.8px;font-weight:800;
    line-height:1.45;
  }
  .settings-shell .zen-settings-layout .field .input,
  .settings-shell .zen-settings-layout .field .select{
    background:#fff;border:1px solid #d7e7dd;
    border-radius:10px;min-height:41px;height:41px;
    padding:9px 11px;color:#294c38;font-size:11.5px;
    box-shadow:0 1px 2px rgba(24,60,35,.025);
  }
  .settings-shell .zen-settings-layout .field .input:focus-visible,
  .settings-shell .zen-settings-layout .field .select:focus-visible{
    outline:2px solid #188f51;outline-offset:2px;
  }
  .settings-shell .zen-settings-layout .field .input:disabled{
    opacity:.65;background:#f3f7f4;
  }
  .settings-shell .zen-settings-layout .zen-settings-form-actions{
    display:flex;align-items:center;margin-top:18px;
  }
  .settings-shell .zen-settings-layout .btn{
    min-height:38px;padding:9px 13px;border-radius:10px;
    font-size:11px;font-weight:800;
    white-space:normal;line-height:1.35;
  }
  .settings-shell .zen-settings-layout .btn.primary{
    border:1px solid #10934d;color:#fff;background:#0a9852;
    box-shadow:0 5px 12px rgba(10,151,79,.12);
  }
  .settings-shell .zen-settings-layout .btn.primary:hover{
    background:#07884a;border-color:#087f45;
  }
  .settings-shell .zen-settings-layout .btn:not(.primary):not(.danger){
    border:1px solid #d5e5d9;color:#315b41;background:#fff;
    box-shadow:none;
  }
  .settings-shell .zen-settings-layout .btn:not(.primary):not(.danger):hover{
    background:#ecf8f0;border-color:#afdbbd;color:#12603c;
  }
  .settings-shell .zen-settings-layout .btn:focus-visible{
    outline:2px solid #119151;outline-offset:2px;
  }
  .settings-shell .zen-settings-password .zen-password-settings{
    margin:0;padding:0;background:transparent;border:0;border-radius:0;
  }
  .settings-shell .zen-settings-password .zen-password-settings form{
    display:grid;gap:12px;
    margin-top:12px;
  }
  .settings-shell .zen-settings-password .zen-password-settings .field{gap:6px}
  .settings-shell .zen-settings-password .zen-password-settings .field small{
    margin:5px 0 0;color:#758b7a;font-size:10.4px;
  }
  .settings-shell .zen-settings-password .zen-password-settings .btn{
    width:max-content;max-width:100%;margin-top:1px;
  }
  .settings-shell .zen-settings-password .zen-password-feedback{
    margin:0;min-height:0;line-height:1.5;
    font-size:10.8px;
  }
  .settings-shell .zen-settings-password .zen-password-settings>small{
    display:block;margin-top:15px;padding-top:13px;
    border-top:1px solid #e7eee9;color:#708774;
    font-size:10.5px;line-height:1.6;
  }
  .settings-shell .zen-settings-backup .backup-btn-row{
    display:flex;gap:9px;align-items:center;
    margin:6px 0 0;flex-wrap:wrap;
  }
  .settings-shell .zen-settings-backup .zen-settings-backup-detail{
    margin:15px 0 0;padding:11px 12px;
    border:1px solid #e0ece3;border-radius:10px;
    background:#f7fbf8;color:#627d6c;
    font-size:10.4px;line-height:1.6;
  }
  .settings-shell .zen-settings-backup .zen-settings-backup-detail strong{
    color:#285d3e;font-weight:850;
  }
  .settings-shell .zen-settings-import .btn,
  .settings-shell .zen-settings-maintenance .btn{margin-top:1px}
  .settings-shell .zen-settings-layout .form-note.warning{
    margin:4px 0 14px;line-height:1.6;
  }
  @media(max-width:1150px){
    .settings-shell .zen-settings-layout{grid-template-columns:1fr}
  }
  @media(max-width:650px){
    .settings-shell{padding:12px 13px 44px}
    .settings-shell .page-heading{min-height:0;flex-wrap:wrap}
    .settings-shell .zen-settings-layout .settings-card{padding:16px 15px 17px}
    .settings-shell .zen-settings-layout .form-grid{gap:11px}
    .settings-shell .zen-settings-layout .settings-card .form-grid{
      grid-template-columns:1fr;
    }
    .settings-shell .zen-settings-layout .form-grid>.field{
      grid-column:1/-1;
    }
    .settings-shell .zen-settings-layout .zen-settings-form-actions .btn{
      width:100%;justify-content:center;
    }
    .settings-shell .zen-settings-password .zen-password-settings .btn{width:100%}
    .settings-shell .zen-settings-backup .backup-btn-row .btn{
      flex:1 1 160px;justify-content:center;
    }
  }
  @media(prefers-reduced-motion:reduce){
    .settings-shell .zen-settings-layout .btn{transition:none}
  }
  html[data-theme="dark"] .settings-shell{
    --zs-line:#395943;--zs-ink:#ebf8ed;--zs-muted:#c0d6c6;
  }
  html[data-theme="dark"] .settings-shell .page-heading h1{color:#e8f5ec}
  html[data-theme="dark"] .settings-shell .zen-settings-card-eyebrow{color:#8cdfb0}
  html[data-theme="dark"] .settings-shell .zen-settings-layout .settings-card{
    background:#1c2e23;border-color:#395943;
  }
  html[data-theme="dark"] .settings-shell .zen-settings-layout .settings-card>h2,
  html[data-theme="dark"] .settings-shell .zen-password-settings h3{
    color:#e5f5eb;
  }
  html[data-theme="dark"] .settings-shell .zen-settings-layout .settings-card>p,
  html[data-theme="dark"] .settings-shell .zen-password-settings>p{color:#bed2c3}
  html[data-theme="dark"] .settings-shell .zen-settings-card-icon{
    background:#285037;color:#b9ebcc;
  }
  html[data-theme="dark"] .settings-shell .zen-settings-password .zen-settings-card-icon{
    background:#29445d;color:#cadffe;
  }
  html[data-theme="dark"] .settings-shell .zen-settings-import .zen-settings-card-icon{
    background:#263e58;color:#cadef7;
  }
  html[data-theme="dark"] .settings-shell .zen-settings-maintenance .zen-settings-card-icon{
    background:#453c2b;color:#f4daa6;
  }
  html[data-theme="dark"] .settings-shell .zen-settings-layout .field label{
    color:#c2dfca;
  }
  html[data-theme="dark"] .settings-shell .zen-settings-layout .field .input,
  html[data-theme="dark"] .settings-shell .zen-settings-layout .field .select{
    background:#263e2e;color:#e2f2e6;border-color:#456f50;
  }
  html[data-theme="dark"] .settings-shell .zen-settings-layout .field small,
  html[data-theme="dark"] .settings-shell .zen-settings-password .zen-password-settings>small{
    color:#bcd1c1;border-color:#3f6048;
  }
  html[data-theme="dark"] .settings-shell .zen-settings-backup .zen-settings-backup-detail{
    background:#23412f;color:#c6dfcd;border-color:#416a4c;
  }
  html[data-theme="dark"] .settings-shell .zen-settings-backup .zen-settings-backup-detail strong{
    color:#c1f2d0;
  }
  html[data-theme="dark"] .settings-shell .zen-settings-layout .btn:not(.primary):not(.danger){
    background:#273e2e;color:#d7f0dd;border-color:#4c7357;
  }
  html[data-theme="dark"] .settings-shell .zen-settings-layout .btn:not(.primary):not(.danger):hover{
    background:#32513d;border-color:#76a482;
  }
}
