/* Estrutura visual base da Central de Resíduos.
   Isolada pelo contêiner .residuos-gestao-page para não afetar outras áreas do SGL. */

.residuos-gestao-page { max-width: 1440px; margin: 0 auto; color: #16243b; }
.residuos-gestao-page .page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.residuos-gestao-page .breadcrumb { margin: 0 0 10px; color: #2456c4; font-size: 10px; font-weight: 850; letter-spacing: .08em; }
.residuos-gestao-page .page-heading h1 { margin: 0; color: #091a36; font-size: clamp(28px, 3vw, 38px); letter-spacing: -.035em; }
.residuos-gestao-page .page-heading > div > p:last-child { margin: 10px 0 0; color: #65758d; font-size: 12px; }
.residuos-gestao-page .metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.residuos-gestao-page .metrics-grid article { padding: 16px 17px; border: 1px solid #dde5ef; border-radius: 10px; background: #fff; box-shadow: 0 7px 24px rgb(12 38 78 / 4%); }
.residuos-gestao-page .metrics-grid span { color: #6f7e94; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.residuos-gestao-page .metrics-grid strong { display: block; margin-top: 5px; color: #0e2242; font-size: 25px; }
.residuos-gestao-page .metrics-grid small { color: #8995a7; font-size: 9px; }
.residuos-gestao-page .feedback { margin-bottom: 14px; padding: 12px 15px; border-radius: 8px; font-size: 11px; font-weight: 700; }
.residuos-gestao-page .feedback--success { border: 1px solid #bfe0ca; background: #f2fbf5; color: #176a37; }
.residuos-gestao-page .feedback--error { border: 1px solid #f2c4c4; background: #fff5f5; color: #a32828; }
.residuos-gestao-page .workspace-card { overflow: hidden; border: 1px solid #dde5ef; border-radius: 11px; background: #fff; box-shadow: 0 12px 36px rgb(11 35 73 / 5%); }
.residuos-gestao-page .status-tabs { display: flex; overflow-x: auto; padding: 0 16px; border-bottom: 1px solid #e4eaf2; }
.residuos-gestao-page .status-tabs button { min-height: 54px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #62728a; font: inherit; font-size: 11px; font-weight: 750; white-space: nowrap; cursor: pointer; }
.residuos-gestao-page .status-tabs button.active { border-bottom-color: #2456c4; color: #17479f; }
.residuos-gestao-page .status-tabs small { min-width: 20px; height: 20px; display: grid; place-items: center; border-radius: 999px; background: #edf1f6; color: #637189; font-size: 8px; }
.residuos-gestao-page .status-tabs button.active small { background: #e6edff; color: #2456c4; }
.residuos-gestao-page .toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 14px 18px; background: #fbfcfe; }
.residuos-gestao-page .toolbar label { width: min(100%, 520px); display: flex; flex-direction: column; gap: 5px; }
.residuos-gestao-page .toolbar label span { color: #68778d; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.residuos-gestao-page .toolbar input { min-height: 39px; padding: 0 11px; border: 1px solid #ced8e5; border-radius: 7px; background: #fff; font: inherit; font-size: 11px; outline: 0; }
.residuos-gestao-page .toolbar input:focus { border-color: #2456c4; box-shadow: 0 0 0 3px rgb(36 86 196 / 7%); }
.residuos-gestao-page .toolbar-note { padding-bottom: 10px; color: #8591a2; font-size: 9px; }
.residuos-gestao-page .state-box { margin: 18px; padding: 30px; border-radius: 8px; background: #f7f9fc; color: #68768c; font-size: 11px; text-align: center; }
.residuos-gestao-page .table-wrap { overflow-x: auto; }
.residuos-gestao-page table { width: 100%; min-width: 980px; border-collapse: collapse; }
.residuos-gestao-page th { padding: 11px 14px; border-top: 1px solid #e8edf3; border-bottom: 1px solid #dfe6ee; background: #f7f9fc; color: #6f7e93; font-size: 8px; font-weight: 900; text-align: left; text-transform: uppercase; letter-spacing: .06em; }
.residuos-gestao-page td { padding: 14px; border-bottom: 1px solid #edf0f4; color: #43536b; font-size: 10px; vertical-align: middle; }
.residuos-gestao-page tbody tr { cursor: pointer; transition: background 140ms ease; }
.residuos-gestao-page tbody tr:hover { background: #fafcff; }
.residuos-gestao-page td strong, .residuos-gestao-page td small { display: block; }
.residuos-gestao-page td strong { color: #24354e; font-size: 10px; }
.residuos-gestao-page td small { margin-top: 4px; color: #7c899b; font-size: 8px; line-height: 1.35; }
.residuos-gestao-page .actions-column { width: 110px; text-align: right; }
.residuos-gestao-page .status-pill { display: inline-flex; align-items: center; min-height: 23px; padding: 0 8px; border-radius: 999px; background: #eef2f7; color: #52647d; font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.residuos-gestao-page .status-pill[data-status='INFORMADO'] { background: #edf2ff; color: #2451ad; }
.residuos-gestao-page .status-pill[data-status='EM_ANALISE'] { background: #fff5d5; color: #866000; }
.residuos-gestao-page .status-pill[data-status='LIBERADO_PARA_ARMAZENAMENTO'] { background: #e6f7ec; color: #14733a; }
.residuos-gestao-page .status-pill[data-status='ARMAZENADO_TEMPORARIAMENTE'] { background: #e8f7f8; color: #106b73; }
.residuos-gestao-page .status-pill[data-status='DESPACHADO'] { background: #eef1f5; color: #4b596d; }
.residuos-gestao-page .primary-action, .residuos-gestao-page .analysis-action, .residuos-gestao-page .secondary-action, .residuos-gestao-page .details-action { min-height: 38px; padding: 0 13px; border-radius: 7px; font: inherit; font-size: 9px; font-weight: 850; cursor: pointer; }
.residuos-gestao-page .primary-action { border: 0; background: #2456c4; color: #fff; }
.residuos-gestao-page .analysis-action { border: 0; background: #187145; color: #fff; }
.residuos-gestao-page .secondary-action, .residuos-gestao-page .details-action { border: 1px solid #cfd8e5; background: #fff; color: #35465f; }
.residuos-gestao-page .primary-action:disabled, .residuos-gestao-page .analysis-action:disabled, .residuos-gestao-page .secondary-action:disabled { opacity: .55; cursor: default; }
.residuos-gestao-page .drawer-backdrop, .residuos-gestao-page .modal-backdrop { position: fixed; inset: 0; z-index: 90; background: rgb(4 16 38 / 46%); backdrop-filter: blur(1px); }
.residuos-gestao-page .detail-drawer { position: absolute; inset: 0 0 0 auto; width: min(100%, 650px); height: 100%; overflow-y: auto; background: #fff; box-shadow: -18px 0 55px rgb(5 22 53 / 22%); }
.residuos-gestao-page .detail-drawer > header, .residuos-gestao-page .modal-card > header, .residuos-gestao-page .modal-card > footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 23px; }
.residuos-gestao-page .detail-drawer > header, .residuos-gestao-page .modal-card > header { border-bottom: 1px solid #e3e9f1; }
.residuos-gestao-page .detail-drawer h2, .residuos-gestao-page .modal-card h2 { margin: 8px 0 3px; color: #10233f; font-size: 20px; }
.residuos-gestao-page .detail-drawer header p { margin: 0; color: #7f8b9d; font-size: 9px; }
.residuos-gestao-page .detail-drawer header button, .residuos-gestao-page .modal-card header button { width: 35px; height: 35px; flex: 0 0 auto; border: 0; border-radius: 50%; background: #f2f5f8; color: #34445c; font-size: 21px; cursor: pointer; }
.residuos-gestao-page .detail-content { padding: 22px 23px 34px; }
.residuos-gestao-page .detail-content section + section { margin-top: 22px; }
.residuos-gestao-page .origin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.residuos-gestao-page .origin-grid article { padding: 11px; border-radius: 7px; background: #f7f9fc; }
.residuos-gestao-page .origin-grid span, .residuos-gestao-page .risk-section span, .residuos-gestao-page .declaration-reference span { display: block; color: #7e8b9d; font-size: 8px; font-weight: 850; text-transform: uppercase; }
.residuos-gestao-page .origin-grid strong { display: block; margin-top: 4px; color: #263750; font-size: 10px; }
.residuos-gestao-page .detail-content h3 { margin: 0 0 9px; color: #34455e; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
.residuos-gestao-page .body-copy { margin: 0; color: #566880; font-size: 10px; line-height: 1.6; }
.residuos-gestao-page .components-list article { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 10px; padding: 11px 12px; border: 1px solid #e2e8f0; border-radius: 8px; }
.residuos-gestao-page .components-list article + article { margin-top: 7px; }
.residuos-gestao-page .components-list div { display: flex; flex-direction: column; gap: 2px; }
.residuos-gestao-page .components-list strong { font-size: 10px; }
.residuos-gestao-page .components-list small { color: #77869a; font-size: 8px; }
.residuos-gestao-page .components-list article > span { padding: 3px 6px; border-radius: 999px; background: #e9f0ff; color: #2456b8; font-size: 7px; font-weight: 850; text-transform: uppercase; }
.residuos-gestao-page .components-list p { grid-column: 1 / -1; margin: 2px 0 0; color: #65758b; font-size: 8px; }
.residuos-gestao-page .risk-section { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.residuos-gestao-page .risk-section > div { padding: 14px; border: 1px solid #dde5ef; border-radius: 8px; background: #fbfcfe; }
.residuos-gestao-page .risk-section > div:last-child { border-color: #cce3d4; background: #f5fbf7; }
.residuos-gestao-page .risk-section .pending { border-color: #e1e6ed; background: #f8fafc; }
.residuos-gestao-page .risk-section h3 { margin: 6px 0 5px; color: #1f314b; font-size: 13px; text-transform: none; }
.residuos-gestao-page .risk-section p { margin: 0 0 7px; color: #53647c; font-size: 9px; }
.residuos-gestao-page .risk-section small { color: #7a8799; font-size: 8px; line-height: 1.45; }
.residuos-gestao-page .drawer-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; padding-top: 18px; border-top: 1px solid #e8edf3; }
.residuos-gestao-page .modal-backdrop { z-index: 100; display: grid; place-items: center; padding: 18px; }
.residuos-gestao-page .modal-card { width: min(100%, 560px); max-height: 92vh; display: flex; flex-direction: column; overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 28px 80px rgb(5 20 49 / 30%); }
.residuos-gestao-page .modal-card--large { width: min(100%, 850px); }
.residuos-gestao-page .modal-card > header span { color: #2456c4; font-size: 8px; font-weight: 900; letter-spacing: .07em; }
.residuos-gestao-page .modal-card > footer { justify-content: flex-end; border-top: 1px solid #e3e9f1; }
.residuos-gestao-page .modal-content { overflow-y: auto; padding: 22px 23px; }
.residuos-gestao-page .selected-summary { display: flex; flex-direction: column; gap: 4px; margin-bottom: 18px; padding: 13px; border-radius: 8px; background: #f6f8fb; }
.residuos-gestao-page .selected-summary strong { font-size: 11px; }
.residuos-gestao-page .selected-summary span { color: #718096; font-size: 9px; }
.residuos-gestao-page .field { display: flex; flex-direction: column; gap: 6px; }
.residuos-gestao-page .field > span, .residuos-gestao-page .risk-fieldset legend { color: #42536b; font-size: 9px; font-weight: 850; }
.residuos-gestao-page .field small { color: #8692a4; font-weight: 600; }
.residuos-gestao-page .field input, .residuos-gestao-page .field select, .residuos-gestao-page .field textarea { width: 100%; border: 1px solid #ccd6e3; border-radius: 7px; background: #fff; color: #1f3049; font: inherit; font-size: 10px; outline: 0; }
.residuos-gestao-page .field input, .residuos-gestao-page .field select { min-height: 41px; padding: 0 10px; }
.residuos-gestao-page .field textarea { resize: vertical; padding: 10px; line-height: 1.5; }
.residuos-gestao-page .field input:focus, .residuos-gestao-page .field select:focus, .residuos-gestao-page .field textarea:focus { border-color: #2456c4; box-shadow: 0 0 0 3px rgb(36 86 196 / 7%); }
.residuos-gestao-page .guidance { margin: 14px 0 0; padding: 11px 12px; border-radius: 7px; background: #f4f7fb; color: #61718a; font-size: 9px; line-height: 1.5; }
.residuos-gestao-page .guidance--warning { border: 1px solid #eadba5; background: #fffaf0; color: #75611e; }
.residuos-gestao-page .declaration-reference { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 15px; border: 1px solid #dbe4f2; border-radius: 9px; background: #f7f9fd; }
.residuos-gestao-page .declaration-reference strong { display: block; margin-top: 4px; color: #1f3150; font-size: 12px; }
.residuos-gestao-page .declaration-reference div p { margin: 4px 0 0; color: #64748b; font-size: 9px; }
.residuos-gestao-page .declaration-reference > p { max-width: 330px; margin: 0; color: #68778e; font-size: 9px; line-height: 1.5; }
.residuos-gestao-page .analysis-content { display: flex; flex-direction: column; gap: 18px; }
.residuos-gestao-page .analysis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.residuos-gestao-page .risk-fieldset { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 12px; border: 1px solid #dbe3ed; border-radius: 8px; }
.residuos-gestao-page .risk-fieldset legend { padding: 0 5px; }
.residuos-gestao-page .risk-fieldset button { min-height: 31px; display: flex; align-items: center; gap: 6px; padding: 0 9px; border: 1px solid #d2dbe6; border-radius: 999px; background: #fff; color: #586980; font: inherit; font-size: 8px; font-weight: 750; cursor: pointer; }
.residuos-gestao-page .risk-fieldset button.selected { border-color: #8db0ef; background: #edf3ff; color: #214fa9; }
.residuos-gestao-page .checkmark { width: 14px; height: 14px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 8px; }

@media (max-width: 900px) {
  .residuos-gestao-page .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .residuos-gestao-page .risk-section, .residuos-gestao-page .analysis-grid { grid-template-columns: 1fr; }
  .residuos-gestao-page .declaration-reference { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 600px) {
  .residuos-gestao-page .page-heading { align-items: flex-start; flex-direction: column; }
  .residuos-gestao-page .metrics-grid, .residuos-gestao-page .origin-grid { grid-template-columns: 1fr; }
  .residuos-gestao-page .toolbar { align-items: stretch; flex-direction: column; }
  .residuos-gestao-page .toolbar label { width: 100%; }
  .residuos-gestao-page .risk-section { grid-template-columns: 1fr; }
  .residuos-gestao-page .modal-backdrop { padding: 0; }
  .residuos-gestao-page .modal-card { width: 100%; max-height: 100vh; border-radius: 0; }
}
