@import url('/css/citizen-detail-mobile-v4.css?v=20260924-dark-final-1');

/* Informações compactas de privacidade — desktop e mobile.
   Três botões semânticos abrem o conteúdo somente quando solicitado. */

.privacy-compact-help{
  width:100%;
  margin:14px 0 16px;
}

.privacy-help-actions{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  width:100%;
}

.privacy-help-button{
  min-width:0;
  min-height:58px;
  padding:10px 14px;
  border:2px solid #d5e0e8;
  border-radius:15px;
  background:#fff;
  color:#29455f;
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:center;
  gap:9px;
  font:inherit;
  font-size:15px;
  font-weight:850;
  line-height:1.15;
  text-align:center;
  cursor:pointer;
  box-shadow:0 4px 12px rgba(24,57,84,.06);
  -webkit-tap-highlight-color:transparent;
  transition:transform .12s ease,box-shadow .12s ease,background .12s ease,border-color .12s ease,color .12s ease;
}

.privacy-help-button:hover{
  transform:translateY(-1px);
  box-shadow:0 7px 16px rgba(24,57,84,.09);
}

.privacy-help-button:active{
  transform:scale(.985);
}

.privacy-help-button:focus-visible{
  outline:4px solid rgba(25,103,150,.23);
  outline-offset:2px;
}

.privacy-help-icon{
  width:32px;
  height:32px;
  flex:0 0 32px;
  display:grid;
  place-items:center;
  border-radius:10px;
  background:#eef3f7;
}

.privacy-help-icon svg{
  width:22px;
  height:22px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

/* Privacidade */
.privacy-help-button[data-help="privacy"]{
  border-color:#d9cbed;
  color:#604486;
  background:#fcfaff;
}
.privacy-help-button[data-help="privacy"] .privacy-help-icon{
  background:#eee4fa;
}
.privacy-help-button[data-help="privacy"][aria-expanded="true"]{
  background:#6f5298;
  border-color:#6f5298;
  color:#fff;
  box-shadow:0 7px 16px rgba(111,82,152,.20);
}
.privacy-help-button[data-help="privacy"][aria-expanded="true"] .privacy-help-icon{
  background:rgba(255,255,255,.18);
}

/* Atenção */
.privacy-help-button[data-help="warning"]{
  border-color:#ead49a;
  color:#765818;
  background:#fffdf6;
}
.privacy-help-button[data-help="warning"] .privacy-help-icon{
  background:#fff0bf;
}
.privacy-help-button[data-help="warning"][aria-expanded="true"]{
  background:#a87918;
  border-color:#a87918;
  color:#fff;
  box-shadow:0 7px 16px rgba(168,121,24,.20);
}
.privacy-help-button[data-help="warning"][aria-expanded="true"] .privacy-help-icon{
  background:rgba(255,255,255,.18);
}

/* Canal */
.privacy-help-button[data-help="channel"]{
  border-color:#bddce9;
  color:#225f78;
  background:#f8fdff;
}
.privacy-help-button[data-help="channel"] .privacy-help-icon{
  background:#def2fa;
}
.privacy-help-button[data-help="channel"][aria-expanded="true"]{
  background:#287f9d;
  border-color:#287f9d;
  color:#fff;
  box-shadow:0 7px 16px rgba(40,127,157,.20);
}
.privacy-help-button[data-help="channel"][aria-expanded="true"] .privacy-help-icon{
  background:rgba(255,255,255,.18);
}

.privacy-help-panels{
  width:100%;
  margin-top:10px;
}

.privacy-help-panel[hidden]{
  display:none !important;
}

.privacy-help-panel{
  animation:privacyHelpOpen .16s ease-out;
}

.privacy-help-panel > .privacy-summary,
.privacy-help-panel > .form-alert{
  margin:0 !important;
  border-radius:16px !important;
  line-height:1.46 !important;
}

@keyframes privacyHelpOpen{
  from{opacity:0;transform:translateY(-4px)}
  to{opacity:1;transform:translateY(0)}
}

/* No mobile, alvos maiores e ícones acima do texto para leitura/toque fácil. */
body.mobile-citizen-mode .privacy-help-actions{
  gap:8px;
}

body.mobile-citizen-mode .privacy-help-button{
  min-height:76px;
  padding:10px 7px;
  flex-direction:column;
  gap:6px;
  border-radius:16px;
  font-size:clamp(15px,2.05vw,19px);
}

body.mobile-citizen-mode .privacy-help-panel > .privacy-summary,
body.mobile-citizen-mode .privacy-help-panel > .form-alert{
  font-size:clamp(18px,2.45vw,22px) !important;
}

body.mobile-citizen-mode .privacy-help-panel > .privacy-summary strong,
body.mobile-citizen-mode .privacy-help-panel > .form-alert strong{
  font-size:clamp(19px,2.55vw,23px) !important;
}

@media(max-width:390px){
  .privacy-help-actions{
    gap:6px;
  }
  body.mobile-citizen-mode .privacy-help-button{
    min-height:72px;
    padding:9px 4px;
    border-radius:14px;
    font-size:14.5px;
  }
  body.mobile-citizen-mode .privacy-help-icon{
    width:30px;
    height:30px;
    flex-basis:30px;
  }
  body.mobile-citizen-mode .privacy-help-icon svg{
    width:20px;
    height:20px;
  }
}

/* Acompanhamento da manifestação — anexos realmente utilizáveis no celular. */
body.mobile-citizen-mode #manifestationDetailModal .citizen-modal-close{
  width:60px !important;
  height:60px !important;
  min-width:60px !important;
  flex:0 0 60px !important;
  padding:0 !important;
  border:0 !important;
  border-radius:15px !important;
  background:transparent url('/assets/Fechar-icon.png?v=20260828-1317') center/52px 52px no-repeat !important;
  color:transparent !important;
  font-size:0 !important;
  box-shadow:none !important;
}
body.mobile-citizen-mode #manifestationDetailModal .citizen-modal-close::before,
body.mobile-citizen-mode #manifestationDetailModal .citizen-modal-close::after{
  content:none !important;
  display:none !important;
}

body.mobile-citizen-mode #manifestationDetailModal .attachment-form .detail-attachment-native-input,
body.mobile-citizen-mode #manifestationDetailModal .attachment-form .detail-attachment-native-input[hidden]{
  display:none !important;
}

body.mobile-citizen-mode #manifestationDetailModal .detail-attachment-source-actions{
  width:100%;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

body.mobile-citizen-mode #manifestationDetailModal .detail-attachment-source-button{
  width:100%;
  min-width:0;
  min-height:82px;
  padding:12px 10px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border:2px solid var(--citizen-ui-line, #bdd2de);
  border-radius:16px;
  background:var(--citizen-ui-surface, #fff);
  color:var(--citizen-ui-accent, #174f78);
  font:inherit;
  text-align:left;
  cursor:pointer;
  box-shadow:0 4px 12px rgba(21,53,80,.06);
  -webkit-tap-highlight-color:transparent;
}
body.mobile-citizen-mode #manifestationDetailModal .detail-attachment-source-button:active{
  transform:scale(.985);
}
body.mobile-citizen-mode #manifestationDetailModal .detail-attachment-source-button:focus-visible{
  outline:4px solid rgba(24,109,153,.22);
  outline-offset:2px;
}
body.mobile-citizen-mode #manifestationDetailModal .detail-attachment-source-button--camera{
  border-color:var(--citizen-ui-green-line, #9fcfd0);
  background:var(--citizen-ui-green, #f1fbfb);
  color:var(--citizen-ui-green-text, #176b70);
}
body.mobile-citizen-mode #manifestationDetailModal .detail-attachment-source-button--device{
  border-color:var(--citizen-ui-line, #b9d1df);
  background:var(--citizen-ui-surface, #f7fbfd);
  color:var(--citizen-ui-accent, #174f78);
}
body.mobile-citizen-mode #manifestationDetailModal .detail-attachment-source-icon{
  width:42px;
  height:42px;
  flex:0 0 42px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:var(--citizen-ui-surface, rgba(255,255,255,.84));
}
body.mobile-citizen-mode #manifestationDetailModal .detail-attachment-source-icon svg,
body.mobile-citizen-mode #manifestationDetailModal .detail-attachment-selection-icon svg{
  width:27px;
  height:27px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}
body.mobile-citizen-mode #manifestationDetailModal .detail-attachment-source-button strong{
  display:block;
  font-size:clamp(18px,4.6vw,22px);
  line-height:1.15;
  font-weight:900;
}
body.mobile-citizen-mode #manifestationDetailModal .detail-attachment-source-button small{
  display:block;
  margin-top:4px;
  color:var(--citizen-ui-muted, #688092);
  font-size:clamp(14px,3.6vw,17px);
  line-height:1.25;
}

body.mobile-citizen-mode #manifestationDetailModal .detail-attachment-selection[hidden],
body.mobile-citizen-mode #manifestationDetailModal #uploadAttachment[hidden]{
  display:none !important;
}
body.mobile-citizen-mode #manifestationDetailModal .detail-attachment-selection{
  width:100%;
  min-height:76px;
  padding:12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  border:2px solid var(--citizen-ui-green-line, #b9d8c8);
  border-radius:15px;
  background:var(--citizen-ui-green, #f4fbf6);
  color:var(--citizen-ui-green-text, #244c3c);
}
body.mobile-citizen-mode #manifestationDetailModal .detail-attachment-selection-copy{
  min-width:0;
  display:flex;
  align-items:center;
  gap:10px;
}
body.mobile-citizen-mode #manifestationDetailModal .detail-attachment-selection-icon{
  width:40px;
  height:40px;
  flex:0 0 40px;
  display:grid;
  place-items:center;
  border-radius:11px;
  background:var(--citizen-ui-green, #e4f3e9);
  color:var(--citizen-ui-green-text, #2f6d50);
}
body.mobile-citizen-mode #manifestationDetailModal .detail-attachment-selection-copy strong{
  display:block;
  max-width:100%;
  color:var(--citizen-ui-green-text, #264a3b);
  font-size:clamp(17px,4.3vw,21px);
  line-height:1.2;
  font-weight:900;
  overflow-wrap:anywhere;
}
body.mobile-citizen-mode #manifestationDetailModal .detail-attachment-selection-copy small{
  display:block;
  margin-top:4px;
  color:var(--citizen-ui-muted, #5f796e);
  font-size:clamp(14px,3.6vw,17px);
  line-height:1.25;
}
body.mobile-citizen-mode #manifestationDetailModal .detail-attachment-remove{
  min-height:46px;
  padding:8px 11px;
  flex:0 0 auto;
  border:1px solid var(--citizen-ui-danger-line, #debfc2);
  border-radius:11px;
  background:var(--citizen-ui-danger, #fff7f7);
  color:var(--citizen-ui-danger-text, #9b3d45);
  font:inherit;
  font-size:16px;
  font-weight:850;
}

body.mobile-citizen-mode #manifestationDetailModal #uploadAttachment{
  min-height:70px !important;
  border:0 !important;
  background:linear-gradient(135deg,#187aa1,#176b91) !important;
  color:#fff !important;
  font-size:clamp(21px,5.4vw,26px) !important;
  box-shadow:0 7px 16px rgba(23,107,145,.18) !important;
}
body.mobile-citizen-mode #manifestationDetailModal #uploadAttachment::before{
  content:none !important;
  display:none !important;
}
body.mobile-citizen-mode #manifestationDetailModal .detail-attachment-status.visible{
  margin-top:0;
  padding:12px 14px;
  border-radius:13px;
  font-size:clamp(17px,4.3vw,21px);
  line-height:1.35;
  font-weight:800;
}

@media(max-width:410px){
  body.mobile-citizen-mode #manifestationDetailModal .detail-attachment-source-actions{
    grid-template-columns:1fr;
  }
  body.mobile-citizen-mode #manifestationDetailModal .detail-attachment-source-button{
    justify-content:flex-start;
    min-height:76px;
    padding:11px 14px;
  }
}
