/* APS DOMICILIAR — Ajustes 08: IVCF compacto e laboratório longitudinal.
   Visual leve inspirado no iOS, controles grandes o suficiente para toque. */
#labOverview{padding:16px 20px;border-color:#dfe7ee;background:#fff}#labOverview h2{font-size:18px;margin:0 0 5px}#labOverview p{margin:5px 0}.lab-overview-row{flex-wrap:wrap}
.lab-shell{max-width:1200px;margin-left:auto;margin-right:auto}.lab-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;padding-bottom:14px;border-bottom:1px solid #e8ecf1;margin-bottom:14px}.lab-heading h2{margin:2px 0 5px;font-size:24px;letter-spacing:-.5px}.lab-heading .muted{margin:0}.lab-primary{background:#087df1;color:#fff;box-shadow:none}.lab-primary:hover{background:#056bd2}.lab-heading .lab-primary{white-space:nowrap}.lab-overview-meta,.lab-info{background:#f6f9fd;border:1px solid #e1eaf4;border-radius:12px;padding:10px 13px;color:#577086;font-size:12px;line-height:1.5;margin:10px 0 15px}
.lab-tools{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:13px 0}.lab-filter-label{font-size:12px;color:#5d6774}.lab-filter-label input,.lab-filter-label select{margin-top:5px;font-size:14px;min-height:38px;background:#fbfcff}.lab-title{margin:21px 0 10px!important;font-size:15px;color:#293e4f;display:flex;align-items:center;gap:8px}.lab-counter{display:inline-flex;align-items:center;justify-content:center;border-radius:99px;padding:2px 9px;font-size:11px;background:#eef3f9;color:#577189}.lab-group{margin:8px 0;border:1px solid #e1e6ed;border-radius:15px;background:#fff;overflow:hidden;box-shadow:0 2px 8px #102a4410}.lab-group-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-bottom:1px solid #edf0f3}.lab-group-head .muted{margin-top:3px;font-size:12px}.lab-date{font-size:14px;font-weight:750}.lab-source{margin-left:8px;border-radius:99px;font-size:10px;padding:3px 8px;color:#286986;background:#e7f4ff}.lab-group-actions{display:flex;gap:6px}.lab-danger{color:#c73f46!important}.lab-result-list{padding:0 14px}.lab-result-row{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;row-gap:3px;padding:9px 0;border-bottom:1px solid #edf0f3;font-size:13px;align-items:baseline}.lab-result-row:last-child{border-bottom:0}.lab-result-row strong{color:#12384b;text-align:right;font-variant-numeric:tabular-nums}.lab-result-row small{grid-column:1 / -1;color:#7b8793}.lab-panel-note{font-size:12px;color:#687e8a;margin:0 14px 12px}.lab-legacy summary{display:flex;align-items:center;justify-content:space-between;padding:11px 14px;background:#f9fbfd;gap:10px;cursor:pointer}.lab-legacy summary strong{font-size:14px}.lab-legacy summary span{font-size:11px;color:#6c8293}.lab-legacy-notice{font-size:12px;color:#6e8493;margin:6px 0 13px}.lab-empty{padding:13px;color:#657789}.lab-draft-banner{display:flex;align-items:center;gap:9px;flex-wrap:wrap;background:#fff8ed;border:1px solid #f0ddbd;border-radius:12px;padding:10px 12px;font-size:12px}.lab-trend-results{border:1px solid #dbe7f1;border-radius:13px;background:#f8fbff;padding:12px;margin-bottom:12px}.lab-trend-results h3{font-size:14px;margin:0 0 5px}.lab-trend-scroll{overflow-x:auto}.lab-trend-table{width:100%;border-collapse:collapse;font-size:12px;text-align:left}.lab-trend-table th,.lab-trend-table td{padding:9px 8px;border-bottom:1px solid #e2eaf0}.lab-trend-table th{color:#687a88;font-weight:650}
.lab-metadata{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px}.lab-metadata label,.lab-entry-grid label,.lab-row-note{font-size:12px;color:#354d5c}.lab-metadata input,.lab-entry-grid input,.lab-row-note input{font-size:14px;min-height:39px;padding:8px 10px;background:#fbfcff}.lab-section-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:22px}.lab-section-header h3{font-size:15px;margin:0}.lab-entry{border:1px solid #e2e9f0;border-radius:14px;padding:12px 13px;margin-top:10px;background:#fbfcfe}.lab-entry-label{display:flex;justify-content:space-between;align-items:center;margin:0 0 8px}.lab-entry-label strong{font-size:13px}.lab-entry-grid{display:grid;grid-template-columns:1.4fr 1fr .7fr .9fr;gap:9px}.lab-row-note{display:block;margin-top:9px}.lab-row-note input{margin-top:5px}.lab-notes-label{display:block;margin-top:16px;font-size:12px}.lab-notes-label textarea{margin-top:6px}.lab-footer{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0 10px}
/* IVCF-20: faixa de progresso, grupos e perguntas enxutas */
#ivcf .panel{max-width:1250px;margin-left:auto;margin-right:auto}.ivcf-form-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.ivcf-form-top h2{font-size:23px;letter-spacing:-.5px;margin:2px 0 4px}.ivcf-form-intro{padding:9px 12px;background:#f5f9fe;border:1px solid #e3ebf8;border-radius:10px;color:#53718a;font-size:12px;margin:11px 0}.ivcf-progress{display:flex;align-items:center;gap:12px;padding:10px 12px;border:1px solid #e2ebf1;border-radius:12px;margin:10px 0 12px}.ivcf-progress-track{height:7px;border-radius:20px;background:#e9eef5;flex:1;overflow:hidden}.ivcf-progress-fill{height:100%;background:#0a84ff;border-radius:20px;transition:width .18s ease}.ivcf-progress-label{white-space:nowrap;font-size:11px;color:#617a89;font-weight:700;font-variant-numeric:tabular-nums}.ivcf-grid{margin:10px 0 13px}.ivcf-grid input,.ivcf-grid select{min-height:37px;padding:7px 9px}.ivcf-group{border:1px solid #e4e9ef;border-radius:14px;margin:7px 0;overflow:hidden}.ivcf-group>summary{padding:10px 14px;background:#fafbfc;font-size:13px;min-height:39px}.ivcf-group[open]>summary{background:#f3f8ff;border-bottom-color:#e5ecf7}.ivcf-group>summary span{font-size:11px;color:#5e798f;padding:3px 8px;background:#e9f1f9;border-radius:99px}.ivcf-group-note{font-size:11px;color:#6c7d88;padding:8px 12px 2px;margin:0}.ivcf-question{min-height:49px;padding:7px 12px;display:flex;gap:12px;align-items:center;justify-content:space-between;border-bottom:1px solid #edf0f3;flex-wrap:wrap}.ivcf-question:hover{background:#fafcfe}.ivcf-qhead{flex:1 1 300px;margin:0;min-width:0;font-size:12px;line-height:1.37;align-items:center}.ivcf-qhead strong{line-height:1.4;font-weight:600;color:#2c3847}.ivcf-check{color:#1f9e79;font-size:14px}.ivcf-options{display:flex;flex:0 0 auto;align-items:center;gap:4px;margin:0}.ivcf-pill{position:relative;display:inline-flex;min-width:57px;height:31px;align-items:center;justify-content:center;border:1px solid #dbe2eb;border-radius:9px;background:#f7f9fc;color:#596675;font-size:12px;font-weight:650;cursor:pointer;transition:background .12s,border-color .12s;color .12s;user-select:none}.ivcf-pill input{position:absolute;inset:0;opacity:0;margin:0;width:100%;cursor:pointer}.ivcf-pill:has(input:checked){background:#e6f2ff;border-color:#0a84ff;color:#0065bd;box-shadow:0 0 0 1px #0a84ff55 inset}.ivcf-pill:has(input:focus-visible){outline:2px solid #0a84ff;outline-offset:2px}.ivcf-pill:hover:not(:has(input:checked)){background:#edf3fa;border-color:#b8d1e7}.ivcf-pill-wide{min-width:108px;font-size:11px;padding:0 9px}.ivcf-age-row{flex:1;min-width:230px}.ivcf-age-row>.muted{font-size:12px;margin-top:2px}.ivcf-question:has(.ivcf-sub){align-items:flex-start}.ivcf-sub{flex:1 1 100%;grid-template-columns:repeat(2,minmax(0,1fr));padding:9px 11px;margin:3px 0 2px;background:#f7faff}.ivcf-sub .choice{min-height:37px;font-size:12px}.ivcf-result{padding:13px;background:#f7fbff;border-color:#e0edf9}.ivcf-result>strong{font-size:15px}.ivcf-result p{font-size:12px}.ivcf-history h3{font-size:15px}.ivcf-form-tools{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:4px}.ivcf-form-tools button{min-height:32px;font-size:11px;padding:7px 11px;border-radius:9px}.ivcf-question:first-child{border-top:0}
@media(max-width:900px){.lab-entry-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.lab-metadata{grid-template-columns:repeat(2,minmax(0,1fr))}.ivcf-options{flex-shrink:0}.ivcf-question{gap:8px}}
@media(max-width:570px){.lab-heading{align-items:flex-start;flex-direction:column;gap:10px}.lab-heading h2{font-size:21px}.lab-heading .lab-primary{width:100%}.lab-tools,.lab-metadata{grid-template-columns:1fr}.lab-entry{padding:10px}.lab-entry-grid{grid-template-columns:1fr 1fr}.lab-entry-grid .lab-name{grid-column:1 / -1}.lab-group-actions{flex-direction:column}.lab-result-row{font-size:12px}.lab-footer button{flex:1 0 40%}.ivcf-form-top h2{font-size:20px}.ivcf-group>summary{padding:9px 11px}.ivcf-question{padding:9px 10px;min-height:47px;gap:5px}.ivcf-qhead{flex:1 1 calc(100% - 140px);font-size:12px}.ivcf-options{gap:4px;margin-left:auto}.ivcf-pill{min-width:48px;height:31px;font-size:11px}.ivcf-pill-wide{min-width:68px;max-width:91px;font-size:10px;text-align:center}.ivcf-sub{grid-template-columns:1fr}.ivcf-grid{grid-template-columns:1fr 1fr}.ivcf-grid label:last-child{grid-column:1 / -1}.ivcf-progress{padding:8px 9px}.ivcf-progress-label{font-size:10px}}
@media print{#labs{display:none!important}#labOverview{display:none!important}}
