.grso-app{--ink:#173542;--muted:#627987;--green:#11634c;--line:#dce6e9;--paper:#f3f7f8;font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--paper);border-radius:20px;overflow:hidden;min-height:720px;max-width:1500px;margin:18px auto;box-shadow:0 12px 45px #17354212}.grso-app *{box-sizing:border-box}.grso-app h1,.grso-app h2,.grso-app h3,.grso-app p{margin:0}.grso-app h1{font-size:30px;line-height:1.2;color:var(--ink);font-weight:750}.grso-app h2{font-size:21px;color:var(--ink)}.grso-app h3{font-size:16px;color:var(--ink)}.grso-app button,.grso-app input,.grso-app select,.grso-app textarea{font:inherit}.grso-app button{cursor:pointer;border:1px solid var(--line);background:#fff;color:var(--ink);padding:10px 15px;border-radius:9px;font-weight:600;line-height:1.3;transition:.15s}.grso-app button:hover{filter:brightness(.95)}.grso-app button:disabled{opacity:.5;cursor:not-allowed}.grso-app .primary{background:var(--green);border-color:var(--green);color:white}.grso-app .danger{background:#fff0f0;border-color:#f0cbcb;color:#a33535}.grso-app :focus-visible{outline:3px solid #35a78b;outline-offset:2px}.grso-shell{display:grid;grid-template-columns:225px 1fr}.grso-side{background:#102f3d;color:#d7e7eb;padding:28px 18px;display:flex;flex-direction:column;gap:24px}.grso-brand{display:flex;align-items:center;gap:12px;padding:0 8px;color:white;font-weight:800;font-size:21px;letter-spacing:1px}.grso-brand small{display:block;font-size:10px;font-weight:500;letter-spacing:2px;color:#aac3ce}.grso-logo{display:grid;place-items:center;width:39px;height:39px;border-radius:12px;background:#a8e2c8;color:#143c37;font-size:23px}.grso-side nav{display:grid;gap:6px}.grso-side nav button{text-align:left;background:transparent;border:none;color:#bcd0d8;font-weight:500;padding:13px}.grso-side nav button.active{background:#244956;color:white;box-shadow:inset 3px 0 #8bdfbd}.grso-side footer{margin-top:auto;font-size:11px;color:#9eb9c5;padding:8px}.grso-main{min-width:0}.grso-topbar{display:flex;justify-content:space-between;align-items:center;gap:12px;background:white;padding:18px 30px;border-bottom:1px solid var(--line);font-size:12px}.grso-topbar b{display:block;font-size:14px}.grso-body{padding:28px 30px}.grso-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:22px}.grso-eyebrow{font-size:10px;font-weight:750;letter-spacing:2px;color:var(--green);margin-bottom:7px}.grso-sub{color:var(--muted);margin-top:8px!important}.grso-notice{background:#fff8e7;border:1px solid #ead9a4;border-radius:10px;padding:12px 16px;margin-bottom:20px;font-size:12px;color:#76581b}.grso-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:24px}.grso-stat,.grso-card{background:white;border:1px solid var(--line);border-radius:13px;padding:20px}.grso-stat b{display:block;font-size:31px;line-height:1.3}.grso-stat span{font-size:12px;color:var(--muted)}.grso-stat small{font-size:10px;display:block;color:var(--green);margin-top:8px}.grso-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(260px,1fr);gap:20px}.grso-card-head{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:18px}.grso-list{display:grid;gap:12px}.grso-row{border:1px solid var(--line);padding:15px;border-radius:10px;display:flex;gap:14px;align-items:center;justify-content:space-between}.grso-row p{font-size:12px;color:var(--muted);margin-top:4px}.grso-row .actions{display:flex;gap:7px;flex-wrap:wrap}.grso-badge{font-size:10px;font-weight:700;display:inline-block;border-radius:6px;padding:4px 8px;background:#edf1f5;color:#60717e}.grso-badge.green{background:#dff1e8;color:#1d684a}.grso-badge.amber{background:#fff0cc;color:#8b6115}.grso-badge.red{background:#fde5e3;color:#b5413e}.grso-map{position:relative;min-height:230px;background:#e5ebdd;border-radius:10px;overflow:hidden;margin:12px 0}.grso-map svg{display:block;width:100%;height:250px}.grso-map-label{position:absolute;bottom:12px;left:12px;background:white;padding:7px 12px;border-radius:6px;font-size:10px;box-shadow:0 2px 8px #0001}.grso-empty{text-align:center;color:var(--muted);padding:36px 20px;border:1px dashed var(--line);border-radius:10px}.grso-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.grso-app label{display:block;font-size:12px;font-weight:650}.grso-app input:not([type=checkbox]),.grso-app select,.grso-app textarea{width:100%;background:white;border:1px solid #ccd9df;border-radius:8px;color:var(--ink);padding:10px 12px;margin-top:6px;min-height:42px}.grso-app textarea{min-height:85px;resize:vertical}.grso-form .wide{grid-column:1/-1}.grso-checks{display:grid;gap:8px;margin:14px 0}.grso-checks label{display:flex;align-items:center;gap:9px;font-weight:500;padding:10px 12px;background:#f4f8f8;border-radius:7px}.grso-app input[type=checkbox]{width:18px;height:18px;accent-color:var(--green)}.grso-risk{margin-bottom:18px;background:white;border:1px solid var(--line);border-radius:12px;padding:20px}.grso-section{margin-top:24px;margin-bottom:14px}.grso-risk-scores{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:15px 0}.grso-score{padding:12px;background:#f4f7f8;border-radius:9px}.grso-score div{display:flex;gap:10px;margin-top:7px}.grso-score label{flex:1}.grso-score b{font-size:20px}.grso-toolbar{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.grso-matrix{display:grid;grid-template-columns:repeat(5,1fr);gap:5px;margin:15px 0}.grso-cell{padding:11px 4px;text-align:center;border-radius:5px;font-size:12px}.grso-cell.low{background:#dff1e8;color:#1d684a}.grso-cell.mid{background:#fff0cc;color:#8b6115}.grso-cell.high{background:#fde5e3;color:#a43836}.grso-app small{color:var(--muted)}.grso-toast{position:fixed;bottom:24px;right:24px;max-width:440px;padding:15px 20px;z-index:99999;border-radius:10px;background:#173b38;color:white;box-shadow:0 8px 28px #0003}.grso-toast.error{background:#953a35}.grso-loading{padding:60px;text-align:center}.grso-log{border-left:2px solid #d4e5e4;margin:12px 0;padding:6px 15px}.grso-log small{display:block}.grso-modal{position:fixed;inset:0;background:#102f3d99;z-index:99990;display:flex;align-items:center;justify-content:center;padding:20px}.grso-modal article{background:white;max-width:620px;width:100%;max-height:85vh;overflow:auto;padding:25px;border-radius:16px;color:var(--ink)}.grso-app .grso-file{font-size:11px;padding:5px 8px;margin:5px}.grso-split{display:flex;justify-content:space-between;gap:12px;align-items:center}.grso-pill{background:#edf7f2;color:#237352;padding:5px 10px;border-radius:30px;font-size:11px}.grso-blocked{padding:12px;border-radius:8px;background:#fff1e9;color:#864f28;margin:12px 0;font-size:12px}.grso-app .grso-help{font-size:11px;color:var(--muted);margin:8px 0}.grso-view-text{white-space:pre-wrap}.grso-mobilebar{display:none}
@media(max-width:1050px){.grso-shell{grid-template-columns:180px 1fr}.grso-body{padding:22px}.grso-grid{grid-template-columns:1fr}.grso-stats{grid-template-columns:repeat(2,1fr)}}
@media(max-width:650px){.grso-app{border-radius:10px;min-height:700px;margin:0}.grso-shell{display:block}.grso-side{padding:14px;gap:12px}.grso-brand{font-size:18px}.grso-side nav{display:flex;overflow-x:auto;gap:4px}.grso-side nav button{white-space:nowrap;padding:9px 11px;font-size:12px}.grso-side footer{display:none}.grso-topbar{padding:12px 16px}.grso-body{padding:19px 15px}.grso-heading{align-items:flex-start}.grso-app h1{font-size:24px}.grso-heading button{font-size:12px;padding:9px}.grso-stat{padding:14px}.grso-stat b{font-size:26px}.grso-form,.grso-risk-scores{grid-template-columns:1fr}.grso-row{align-items:flex-start;flex-direction:column}.grso-row .actions{width:100%}.grso-row .actions button{flex:1}.grso-card,.grso-risk{padding:16px}.grso-toast{bottom:12px;right:12px;left:12px}.grso-modal{padding:12px}}
@media print{body *{visibility:hidden} .grso-app,.grso-app *{visibility:visible}.grso-app{position:absolute;left:0;top:0;width:100%;margin:0;box-shadow:none;background:white}.grso-side,.grso-topbar,.grso-app button,.grso-toast,.grso-notice{display:none!important}.grso-shell{display:block}.grso-body{padding:0}.grso-card,.grso-risk{break-inside:avoid}.grso-stats{grid-template-columns:repeat(4,1fr)}}

.grso-map-live{width:100%;height:340px;min-height:240px;border-radius:12px;overflow:hidden;background:#e4e9e6;margin:12px 0}.grso-map-live iframe{border:0;width:100%;height:100%;display:block}.grso-weather-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.5;margin:10px 0}@media(max-width:700px){.grso-map-live{height:260px}}

.grso-map-editor{height:480px;min-height:320px;border-radius:12px;overflow:hidden;margin:12px 0}.grso-map-tools{display:flex;flex-wrap:wrap;gap:8px}.grso-map-tools select{max-width:210px}@media(max-width:640px){.grso-map-editor{height:390px}.grso-map-tools button{font-size:12px}}

.grso-risk-matrix{display:grid;grid-template-columns:minmax(105px,1.5fr) repeat(5,minmax(50px,1fr));gap:4px;overflow-x:auto}.grso-risk-matrix .grso-cell{padding:15px 3px;text-align:center;border-radius:5px;font-weight:700}.grso-risk-matrix .grso-cell.high{background:#f5b2b2;color:#780b0b}.grso-risk-matrix .grso-cell.mid{background:#fff0a8;color:#6b4900}.grso-risk-matrix .grso-cell.low{background:#b6e5cd;color:#065b33}.grso-matrix-head{padding:8px 3px;font-size:11px;font-weight:700;text-align:center;background:#eef2f5;border-radius:4px;overflow-wrap:anywhere}@media(max-width:680px){.grso-risk-matrix{font-size:11px}.grso-matrix-head{font-size:9px}}

.grso-risk-result{display:inline-block;border-radius:7px;padding:6px 9px;font-weight:700;line-height:1.5;margin:4px 2px}.grso-risk-result.low{background:#d7f2e2;color:#105d39}.grso-risk-result.mid{background:#fff0b8;color:#775100}.grso-risk-result.high{background:#ffd7d7;color:#9c1a1a}.grso-factor-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:9px}.grso-factor-grid label{display:flex;align-items:center;gap:7px;font-size:14px}.grso-human-factors{margin:12px 0;padding:14px}

/* Aparência configurável: cores aplicadas somente ao painel ASAERO GRSO. */
.grso-app{--ink:var(--grso-text);--muted:var(--grso-muted);--green:var(--grso-primary);--line:var(--grso-border);--paper:var(--grso-page-bg)}
.grso-app .grso-side{background:var(--grso-sidebar);color:var(--grso-sidebar-text)}
.grso-app .grso-side nav button{color:var(--grso-sidebar-text)}
.grso-app .grso-side nav button.active{background:var(--grso-sidebar-active);box-shadow:inset 3px 0 var(--grso-sidebar-accent);color:var(--grso-sidebar-text)}
.grso-app .grso-topbar{background:var(--grso-topbar)}
.grso-app .grso-card,.grso-app .grso-stat,.grso-app .grso-risk{background:var(--grso-card)}
.grso-app .primary{background:var(--grso-primary);border-color:var(--grso-primary);color:var(--grso-primary-text)}
.grso-app input:not([type=checkbox]):not([type=radio]),.grso-app select,.grso-app textarea{background:var(--grso-field-bg);border-color:var(--grso-field-border)}
.grso-app .grso-notice{background:var(--grso-notice-bg);color:var(--grso-notice-text)}
.grso-app th,.grso-app .grso-matrix-head{background:var(--grso-table-head)}
.grso-app td{background:var(--grso-table-row)}
.grso-app[data-section=dashboard]{--green:var(--grso-dashboard);--grso-primary:var(--grso-dashboard)}
.grso-app[data-section=assessments]{--green:var(--grso-assessments);--grso-primary:var(--grso-assessments)}
.grso-app[data-section=guidance]{--green:var(--grso-guidance);--grso-primary:var(--grso-guidance)}
.grso-app[data-section=places]{--green:var(--grso-places);--grso-primary:var(--grso-places)}
.grso-app[data-section=operationalmap]{--green:var(--grso-operationalmap);--grso-primary:var(--grso-operationalmap)}
.grso-app[data-section=weather]{--green:var(--grso-weather);--grso-primary:var(--grso-weather)}
.grso-app[data-section=reports]{--green:var(--grso-reports);--grso-primary:var(--grso-reports)}

/* Checklist de fatores humanos na análise de risco */
.grso-human-factors{display:block!important;margin:18px 0!important;padding:18px!important;border:2px solid var(--grso-border,#cbd5e1)!important;border-radius:12px;background:var(--grso-card,#fff)}
.grso-human-factors legend{font-size:1.1rem;font-weight:800;padding:0 10px}
.grso-human-factors .grso-factor-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px}
.grso-human-factors .grso-factor-item{display:flex!important;align-items:flex-start!important;gap:10px;padding:12px;border:1px solid #cbd5e1;border-radius:9px;cursor:pointer;min-width:0;background:transparent}
.grso-human-factors .grso-factor-item input{flex:0 0 auto;width:19px;height:19px;margin-top:2px;accent-color:#087c67}
.grso-human-factors .grso-factor-item span{display:flex;flex-direction:column;gap:4px;min-width:0}
.grso-human-factors .grso-factor-item small{font-size:12px;line-height:1.4;opacity:.85}
.grso-human-factors .grso-factor-item:has(input:checked){border-color:#087c67;box-shadow:inset 0 0 0 1px #087c67}

/* 1.3.9 — resultados compactos e descrições legíveis dos fatores humanos */
.grso-app .grso-score>b{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:15px;line-height:1.35;font-weight:700}
.grso-app .grso-score .grso-risk-result{font-size:12px!important;font-weight:650;line-height:1.35;padding:5px 8px;max-width:100%;white-space:normal;overflow-wrap:anywhere;vertical-align:middle;margin:0}
.grso-app .grso-risk-result{font-size:12px;line-height:1.4}
.grso-app .grso-human-factors .grso-factor-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.grso-app .grso-human-factors .grso-factor-item{display:flex!important;align-items:flex-start!important;gap:10px;padding:11px 12px;line-height:1.4}
.grso-app .grso-human-factors .grso-factor-item span{display:flex;flex-direction:column;gap:3px;min-width:0}
.grso-app .grso-human-factors .grso-factor-item strong{display:block;font-size:12px;line-height:1.35;font-weight:700}
.grso-app .grso-human-factors .grso-factor-item small{display:block;font-size:11px;line-height:1.45;font-weight:400;opacity:1;color:var(--muted)}
@media(max-width:760px){.grso-app .grso-human-factors .grso-factor-grid{grid-template-columns:1fr}}

/* 1.4.0: triagem de relatos QR vinculada à avaliação */
.grso-report-import{background:#f7fafb;border:1px solid var(--line);border-radius:12px;padding:16px}.grso-report-choice{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;padding:12px;border-bottom:1px solid var(--line);align-items:center}.grso-report-choice label{display:flex;align-items:center;gap:9px;min-width:0}.grso-report-choice small{grid-column:1/-1;overflow-wrap:anywhere}.grso-report-choice button{font-size:12px;padding:8px 10px}@media(max-width:650px){.grso-report-choice{grid-template-columns:1fr}.grso-report-choice small{grid-column:1}}

/* Fotos anexadas a relatos e análises */
.grso-attachment{display:inline-flex;flex-direction:column;align-items:flex-start;gap:8px;margin:10px 12px 10px 0;max-width:100%}.grso-photo-preview{display:block;width:auto;max-width:min(100%,380px);max-height:300px;object-fit:contain;border:1px solid #d9e4eb;border-radius:9px;background:#f7f9fa}.grso-photo-target:empty{display:none}

/* Identidade Aerotek */
.grso-brand{display:flex;flex-direction:column;gap:8px;letter-spacing:0;padding:0}.aerotek-brand-logo{width:100%;max-width:210px;height:auto;border-radius:6px}.grso-brand small{color:#fff;font-size:10px;letter-spacing:1px}.grso-side footer a{color:#FFB708}.grso-app .grso-eyebrow{color:#476d24}.grso-app .primary:focus-visible{outline:3px solid #152604}.grso-app .primary:hover{filter:brightness(.94)}

.grso-pin-login{max-width:800px;margin:40px auto;display:grid;grid-template-columns:1fr 1fr;border-radius:20px;overflow:hidden;box-shadow:0 16px 48px #15260422;font:15px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#fff;color:#152604}.grso-pin-login *{box-sizing:border-box}.grso-pin-brand{background:#152604;color:white;padding:42px 30px}.grso-pin-brand img{max-width:100%;height:auto}.grso-pin-brand h2{color:white;font-size:24px;margin-top:28px}.grso-pin-login form{padding:36px}.grso-pin-login h3{font-size:24px;margin:0 0 24px;color:#152604}.grso-pin-login label{display:block;font-weight:600;margin:16px 0}.grso-pin-login input:not([type=hidden]){display:block;width:100%;padding:13px;margin-top:7px;border:1px solid #c7d4b8;border-radius:9px;font:inherit}.grso-pin-login button{width:100%;padding:14px;border:0;border-radius:9px;background:#FFB708;color:#152604;font:inherit;font-weight:700;cursor:pointer}.grso-pin-help{font-size:12px;color:#59664f}.grso-pin-error{padding:12px;background:#fde5e3;border-radius:8px;color:#962323}.grso-pin-login :focus-visible{outline:3px solid #5EAA30;outline-offset:2px}@media(max-width:600px){.grso-pin-login{grid-template-columns:1fr;margin:20px 10px}.grso-pin-brand{padding:22px;text-align:center}.grso-pin-brand img{max-width:250px}.grso-pin-brand h2{margin:12px 0;font-size:20px}.grso-pin-brand p{margin:0}.grso-pin-login form{padding:24px}}

.grso-import-table{overflow:auto;margin-top:20px}.grso-import-table table{width:100%;border-collapse:collapse;font-size:12px}.grso-import-table th,.grso-import-table td{padding:10px;border:1px solid var(--line);text-align:left;vertical-align:top}.grso-import-table summary{cursor:pointer;min-width:150px}.grso-import-fields{min-width:230px;padding:10px;display:grid;gap:8px}.grso-import-table input[type=checkbox]{width:20px;height:20px}.grso-app [data-import-progress]{margin:12px 0;padding:10px;background:#F2F6EC;overflow-wrap:anywhere}
