[hidden] { display: none !important; }
.auth-screen { min-height: 100vh; display: grid; place-items: center; padding: 28px; background: radial-gradient(ellipse at 15% 0%, rgba(230,86,1,.14), transparent 40%), linear-gradient(145deg, #041021, #001839 68%, #102c4b); color: #f6f8fb; }
.auth-card { width: min(100%, 460px); padding: 38px; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: rgba(8,24,43,.94); box-shadow: 0 25px 80px rgba(0,0,0,.32); }
.auth-brand { display: inline-flex; margin-bottom: 24px; }
.auth-brand img { display: block; width: 156px; height: auto; object-fit: contain; }
.auth-eyebrow { color: #f47732; font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.auth-card h1 { margin: 8px 0 8px; color: #fff; font-size: clamp(24px, 5vw, 31px); letter-spacing: -.035em; }
.auth-description { margin: 0 0 22px; color: #aeb9c8; font-size: 13px; line-height: 1.65; }
.auth-form { display: grid; gap: 15px; }
.auth-field { display: grid; gap: 7px; color: #d9e0e9; font-size: 12px; font-weight: 700; }
.auth-field input, .auth-field select { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; background: #0d2035; color: #fff; font: inherit; outline: none; }
.auth-field input:focus, .auth-field select:focus { border-color: #f47732; box-shadow: 0 0 0 3px rgba(244,119,50,.15); }
.auth-submit { min-height: 46px; margin-top: 3px; border: 0; border-radius: 8px; background: #e65601; color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.auth-submit:hover { background: #f26a16; }
.auth-submit:disabled { opacity: .55; cursor: wait; }
.auth-link { justify-self: start; padding: 3px 0; border: 0; background: transparent; color: #f7a275; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.auth-link:hover { color: #fff; }
.auth-retry { margin-top: 12px; }
.auth-open-in-tab { margin-top: 8px; text-decoration: underline; text-underline-offset: 3px; }
.auth-alert { display: none; margin-top: 16px; padding: 11px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; background: rgba(255,255,255,.05); color: #d9e0e9; font-size: 12px; line-height: 1.55; }
.auth-alert.is-visible { display: block; }
.auth-alert.is-error { border-color: rgba(255,128,112,.35); background: rgba(143,42,32,.16); color: #ffd0c9; }
.auth-footnote { margin: 22px 0 0; color: #8290a2; font-size: 11px; line-height: 1.5; }
.account-chip { max-width: 230px; overflow: hidden; color: #66758a; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.users-dialog { width: min(94vw, 700px); max-height: 88vh; padding: 0; border: 1px solid #e1e7ed; border-radius: 14px; background: #fff; color: #15243a; box-shadow: 0 24px 80px rgba(8,24,43,.24); }
.users-dialog::backdrop { background: rgba(4,16,33,.58); backdrop-filter: blur(3px); }
.users-dialog-inner { padding: 24px; }
.users-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.users-dialog-header h2 { margin: 4px 0 5px; font-size: 22px; letter-spacing: -.025em; }
.users-dialog-header p { margin: 0; color: #738095; font-size: 12px; line-height: 1.5; }
.invite-form { display: grid; grid-template-columns: minmax(160px, 1fr) 150px auto; gap: 10px; align-items: end; padding: 16px; border-radius: 10px; background: #f5f7fa; }
.invite-form label { display: grid; gap: 6px; color: #59677a; font-size: 11px; font-weight: 700; }
.invite-form input, .invite-form select { min-height: 39px; padding: 8px 10px; border: 1px solid #d8e0e9; border-radius: 7px; background: #fff; color: #15243a; font: inherit; font-size: 12px; }
.invite-form button { min-height: 39px; padding: 0 13px; border: 0; border-radius: 7px; background: #e65601; color: #fff; font-size: 12px; font-weight: 800; cursor: pointer; }
.users-alert { display: none; margin-top: 12px; padding: 9px 11px; border-radius: 7px; background: #fff3ec; color: #93420f; font-size: 11px; line-height: 1.5; }
.users-alert.is-visible { display: block; }
.users-alert.is-error { background: #fff0ef; color: #a3382e; }
.invite-result { margin-top: 14px; padding: 14px; border: 1px solid #ffd4be; border-radius: 9px; background: #fff7f2; }
.invite-result-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.invite-result-head strong { font-size: 13px; }
.invite-result-meta { margin: 5px 0 10px; color: #738095; font-size: 11px; }
.invite-code-line { display: flex; align-items: center; gap: 10px; }
.invite-code-line code { min-width: 0; flex: 1; overflow-wrap: anywhere; padding: 10px; border-radius: 6px; background: #fff; color: #213048; font-size: 12px; }
.invite-code-line button { padding: 9px 11px; border: 1px solid #e65601; border-radius: 6px; background: #fff; color: #c84a00; font-size: 11px; font-weight: 800; cursor: pointer; }
.invite-warning { margin: 9px 0 0; color: #86533b; font-size: 11px; line-height: 1.5; }
.users-list { max-height: 38vh; overflow: auto; margin-top: 18px; border-top: 1px solid #e7ecf1; }
.user-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 2px; border-bottom: 1px solid #edf0f4; }
.user-meta { display: grid; gap: 4px; min-width: 0; }
.user-meta strong { overflow-wrap: anywhere; font-size: 12px; }
.user-meta span { color: #778497; font-size: 10px; }
.user-action-button { flex: 0 0 auto; padding: 7px 9px; border: 1px solid #d7e0e8; border-radius: 6px; background: white; color: #31445c; font-size: 10px; font-weight: 700; cursor: pointer; }
.user-action-button.is-danger { border-color: #f0c8c4; color: #a3382e; }
.pending-heading { padding: 12px 2px 4px; color: #738095; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.users-loading { color: #738095; font-size: 12px; }
.users-loading.is-error { color: #a3382e; }
.users-dialog-footer { display: flex; justify-content: flex-end; padding-top: 16px; }
.users-dialog-footer button { min-height: 38px; padding: 0 14px; border: 1px solid #d8e0e9; border-radius: 7px; background: #fff; color: #425269; font-size: 12px; font-weight: 700; cursor: pointer; }

/* Relatório de finalização e exceções */
.report-action { min-height: 31px; padding: 0 10px; font-size: 9px; white-space: nowrap; }
.detail-actions { align-items: center; flex-wrap: wrap; }
.status-finalized { background: #fff2e9; color: #9b4b12; }
.status-finalized > span { background: #e65601; }
.report-dialog { width: min(94vw, 620px); }
.report-form { display: grid; gap: 9px; }
.report-observation-label { color: #35475b; font-size: 12px; font-weight: 800; }
.report-form textarea { width: 100%; min-height: 118px; resize: vertical; padding: 11px 12px; border: 1px solid #d8e0e9; border-radius: 8px; background: #fff; color: #203148; font: inherit; font-size: 12px; line-height: 1.6; outline: none; }
.report-form textarea:focus { border-color: #e65601; box-shadow: 0 0 0 3px rgba(230,86,1,.12); }
.report-pending { margin-top: 12px; padding: 10px 11px; border: 1px solid #ffd4be; border-radius: 8px; background: #fff7f2; color: #864216; font-size: 11px; line-height: 1.6; }
.report-integrity-note { margin: 0; color: #758294; font-size: 10px; line-height: 1.55; }
.report-dialog-actions { display: flex; gap: 8px; justify-content: flex-end; padding-top: 8px; }
.report-dialog-actions .button-primary { min-height: 38px; border: 0; background: #e65601; color: #fff; font-size: 12px; font-weight: 800; }
.report-dialog-actions .button-primary:hover { background: #f26a16; }
.report-dialog-actions > button:not(.button) { min-height: 38px; }
@media (max-width: 700px) {
  .detail-header { flex-wrap: wrap; gap: 12px; }
  .detail-actions { width: 100%; justify-content: flex-end; }
  .report-action { margin-right: auto; }
}
@media (max-width: 560px) {
  .auth-screen { padding: 15px; }
  .auth-card { padding: 25px 21px; }
  .invite-form { grid-template-columns: 1fr; }
  .invite-form button { width: 100%; }
  .account-chip { display: none; }
  .users-dialog-inner { padding: 18px; }
}

.shared-access-notice {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0 0 18px;
  padding: 12px 15px;
  border: 1px solid #ffd2ba;
  border-left: 4px solid #e65601;
  border-radius: 9px;
  background: #fff7f2;
  color: #66320f;
  font-size: 12px;
  line-height: 1.55;
}
.shared-access-notice strong { color: #9b3f00; font-size: 12px; }
.app-load-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  padding: 9px 12px;
  border: 1px solid #dbe4ed;
  border-radius: 8px;
  background: #f6f9fc;
  color: #53657a;
  font-size: 12px;
}
.app-load-status.is-error { border-color: #f0c8c4; background: #fff0ef; color: #a3382e; }
.app-load-status button { border: 0; background: transparent; color: #c84a00; font: inherit; font-weight: 800; cursor: pointer; text-decoration: underline; }
.app-load-status button:disabled { opacity: .55; cursor: wait; }
@media (max-width: 560px) {
  .shared-access-notice { margin-bottom: 14px; font-size: 11px; }
  .app-load-status { align-items: flex-start; flex-direction: column; }
}
