:root{font-family:Lato,sans-serif;color:#243128;background:#f6f7f6;font-synthesis:none;text-rendering:optimizeLegibility;font-optical-sizing:auto;font-size:14px;--green: #709e6c;--green-light: #c2eb99;--green-dark: #4f7a4b;--sidebar: #1f2421;--background: #f6f7f6;--border: #c2c3c2;--border-soft: #e4e8e4;--text: #243128;--muted: #68756b;--white: #fff}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0;background:var(--background)}button,input,select,textarea{font:inherit}button{color:inherit}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid rgb(112 158 108 / 32%);outline-offset:2px}button:disabled{cursor:not-allowed!important;opacity:.58}h1,h2,h3,h4,p{margin-top:0}.app-shell{min-height:100vh}.sidebar{position:fixed;z-index:20;inset:0 auto 0 0;width:272px;display:flex;flex-direction:column;padding:25px 17px 17px;color:#edf1ed;background:var(--sidebar)}.sidebar-brand{display:flex;align-items:flex-start;flex-wrap:wrap;gap:11px 13px;padding:0 8px 22px}.brand-logo{display:block;flex:0 0 auto;object-fit:contain}.brand-logo-dark{width:188px;height:auto}.brand-logo-light.topbar-logo{width:32px;height:32px}.sidebar-brand>div:nth-child(2){width:100%;min-width:0;display:flex;flex-direction:column;gap:4px;padding-left:2px}.sidebar-brand strong{color:#f0f3f0;font-size:14px;font-weight:700;letter-spacing:.01em}.sidebar-brand span{color:#aab4ab;font-size:12px}.sidebar-section-label{padding:11px 12px 10px;color:#929d94;font-size:10px;font-weight:700;letter-spacing:.11em}.primary-nav{display:grid;gap:4px}.nav-item{position:relative;width:100%;height:45px;display:flex;align-items:center;gap:13px;padding:0 11px;border:0;border-radius:6px;color:#c0c8c1;background:transparent;text-align:left;cursor:pointer;font-size:13px;transition:background .16s,color .16s}.nav-item>svg{width:18px;height:18px}.nav-item:hover{color:#fff;background:#ffffff0f}.nav-item.active{color:#f5fff0;background:#313a33;font-weight:700}.nav-item.active>svg{color:var(--green-light)}.nav-item:focus-visible{outline-color:var(--green-light);outline-offset:1px}.nav-indicator{position:absolute;right:0;width:3px;height:19px;border-radius:3px 0 0 3px;background:var(--green-light)}.nav-item:not(.active) .nav-indicator{display:none}.sidebar-divider{height:1px;margin:18px 8px 15px;background:#363e38}.mini-calendar{padding:0 7px}.mini-calendar-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.mini-calendar-head>strong{color:#edf2ed;font-size:13px;font-weight:700}.mini-calendar-head>div{display:flex;gap:2px}.icon-button{width:36px;height:36px;display:inline-grid;place-items:center;flex:0 0 auto;border:1px solid transparent;border-radius:6px;color:#69766c;background:transparent;cursor:pointer;transition:background .15s,color .15s,border-color .15s}.icon-button:hover{color:#2f3c32;background:#f0f3f0}.mini-arrow{width:28px;height:28px;color:#aab4ab}.mini-arrow:hover{color:#fff;background:#333a35}.mini-calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);justify-items:center;gap:4px 2px}.mini-calendar-grid button,.mini-calendar-grid>span{position:relative;width:29px;height:29px;display:grid;place-items:center;border:0;border-radius:50%;color:#d3dad4;background:transparent;cursor:pointer;font-size:11px}.mini-calendar-grid>span{height:21px;color:#9aa59b;cursor:default;font-size:10px;font-weight:700}.mini-calendar-grid button:hover{color:#fff;background:#343c36}.mini-calendar-grid button.outside{color:#7e8980}.mini-calendar-grid button.today{box-shadow:inset 0 0 0 1px #8baa84}.mini-calendar-grid button.selected{color:#243128;background:var(--green-light);font-weight:800}.mini-calendar-grid button.has-appointments:not(.selected):after{position:absolute;bottom:1px;left:calc(50% - 2px);width:4px;height:4px;border-radius:50%;background:var(--green-light);content:""}.sidebar-tip{display:flex;flex-direction:column;gap:9px;margin:23px 5px 16px;padding:14px 12px;border:1px solid #3a433c;border-radius:7px;background:#282f2a}.tip-icon{width:29px;height:29px;display:grid;place-items:center;border-radius:6px;color:var(--green-light);background:#37473a}.sidebar-tip strong{margin-top:2px;color:#e9eee9;font-size:12px}.sidebar-tip>span{color:#adb7ae;font-size:11px;line-height:1.55}.sidebar-footer{min-width:0;display:flex;align-items:center;gap:10px;margin-top:auto;padding:13px 5px 2px;border-top:1px solid #39413b}.demo-avatar{width:34px;height:34px;display:grid;place-items:center;flex:0 0 auto;border:1px solid #72896f;border-radius:50%;color:#e4efdf;background:#39463a;font-size:12px;font-weight:700}.user-meta{min-width:0;display:flex;flex:1;flex-direction:column;gap:4px}.user-meta strong,.user-meta span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-meta strong{color:#e6ebe6;font-size:11px}.user-meta span{color:#adb6ae;font-size:10px}.demo-presence{width:7px;height:7px;flex:0 0 auto;border-radius:50%;background:var(--green-light)}.mobile-close,.mobile-menu-button,.mobile-bottom-nav,.sidebar-scrim{display:none}.main-content{min-height:100vh;margin-left:272px}.topbar{height:68px;display:flex;align-items:center;justify-content:space-between;padding:0 40px;border-bottom:1px solid #e6e9e6;background:#fff}.breadcrumb{min-width:0;display:flex;align-items:center;gap:10px;color:#758077;font-size:12px;white-space:nowrap}.breadcrumb>span{font-weight:600}.breadcrumb strong{overflow:hidden;color:var(--text);font-size:12px;font-weight:700;text-overflow:ellipsis}.topbar-right{display:flex;align-items:center;gap:13px}.today-chip{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px;white-space:nowrap}.today-dot,.municipality-badge>span{width:7px;height:7px;border-radius:50%;background:var(--green)}.topbar-demo-label{padding:6px 9px;border:1px solid #e1e9dd;border-radius:20px;color:#54724f;background:#f5f8f2;font-size:10px;font-weight:700;white-space:nowrap}.page-content{max-width:1550px;margin:0 auto;padding:30px 40px 54px}.demo-banner{min-height:58px;display:flex;align-items:center;gap:12px;margin-bottom:26px;padding:11px 14px;border:1px solid #dce5d9;border-radius:6px;color:#435b43;background:#f5f8f3}.demo-banner-icon{width:32px;height:32px;display:grid;place-items:center;flex:0 0 auto;border-radius:50%;color:var(--green-dark);background:#eaf1e7}.demo-banner>div{min-width:0;display:flex;flex:1;flex-direction:column;gap:4px}.demo-banner strong{font-size:10px;letter-spacing:.075em}.demo-banner>div>span{color:#617362;font-size:11px;line-height:1.45}.demo-banner>button{min-height:34px;display:inline-flex;align-items:center;gap:7px;padding:0 10px;border:1px solid #d8e2d4;border-radius:5px;color:var(--green-dark);background:#f8faf6;cursor:pointer;font-size:10px;white-space:nowrap}.demo-banner>button:hover{border-color:#aebfa9;background:#eef4ea}.storage-warning{display:flex;align-items:center;gap:7px;margin:-12px 0 17px;padding:9px 10px;border:1px solid #e7d6d3;border-radius:5px;color:#845952;background:#fcf7f6;font-size:11px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-bottom:22px}.eyebrow{margin:0 0 8px;color:var(--green-dark);font-size:10px;font-weight:800;letter-spacing:.1em}.page-heading h1{margin:0;color:var(--text);font-size:28px;font-weight:700;line-height:1.2;letter-spacing:-.025em}.page-subtitle{margin:8px 0 0;color:var(--muted);font-size:14px;line-height:1.5}.heading-actions{display:flex;align-items:center;gap:12px}.municipality-badge{height:34px;display:inline-flex;align-items:center;gap:8px;padding:0 12px;border:1px solid #e1e8e0;border-radius:20px;color:#58685b;background:#fff;font-size:11px;white-space:nowrap}.button{min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 15px;border:1px solid transparent;border-radius:6px;cursor:pointer;font-size:12px;font-weight:700;transition:background .15s,border-color .15s,color .15s,transform .15s;white-space:nowrap}.button:not(:disabled):active{transform:translateY(1px)}.button-primary{border-color:var(--green-dark);color:#fff;background:var(--green-dark)}.button-primary:not(:disabled):hover{border-color:#41683e;background:#41683e}.button-secondary{border-color:#d7ddd7;color:#435248;background:#fff}.button-secondary:not(:disabled):hover{border-color:#aebfa9;background:#f7faf6}.button-danger{border-color:#965d57;color:#fff;background:#965d57}.button-danger:hover{border-color:#804b46;background:#804b46}.button-today{min-height:34px;padding:0 12px;border-color:#dfe5df;color:#526057;background:#fff;font-size:11px}.button-today:hover{border-color:#c7d4c5;background:#f7faf6}.toolbar{min-height:62px;display:flex;align-items:center;gap:17px;padding:11px 14px;border:1px solid #e2e7e2;border-radius:7px;background:#fff}.period-navigation{display:flex;align-items:center;gap:7px}.period-arrow{width:34px;height:34px;color:#657067}.period-arrow:hover{background:#f1f5f0}.period-title{min-width:222px;display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:5px 7px;border:0;color:#29372d;background:transparent;cursor:pointer;font-size:13px;font-weight:700}.period-title svg{color:var(--green)}.toolbar-spacer{flex:1}.view-switch{height:36px;display:flex;padding:3px;border:1px solid #e2e7e2;border-radius:6px;background:#f5f7f5}.view-switch button{min-width:59px;padding:0 11px;border:0;border-radius:4px;color:#68756b;background:transparent;cursor:pointer;font-size:11px}.view-switch button.selected{color:#355a34;background:#fff;box-shadow:0 1px 3px #141e1417;font-weight:700}.history-period{display:flex;align-items:center;gap:14px;color:var(--green-dark)}.history-period>label{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:12px}.history-period input{width:148px;height:36px;padding:0 9px;border:1px solid #d9e0d9;border-radius:5px;color:#344238;background:#fff;font-size:11px}.range-dash{color:#98a39a;font-size:12px}.summary-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:16px 0}.summary-card{min-height:82px;display:flex;align-items:center;gap:14px;padding:14px 16px;border:1px solid #e2e7e2;border-radius:7px;background:#fff;box-shadow:0 1px 2px #14231505}.summary-icon{width:38px;height:38px;display:grid;place-items:center;flex:0 0 auto;border-radius:7px;color:var(--green-dark);background:#eff5ed}.summary-mint .summary-icon{color:#658751;background:#f1f6e8}.summary-neutral .summary-icon{color:#637769;background:#f0f4f1}.summary-copy{display:grid;grid-template-columns:1fr auto;align-items:center;flex:1;column-gap:12px}.summary-copy>span{color:#5e6d61;font-size:12px}.summary-copy>strong{grid-column:2;grid-row:1 / span 2;color:var(--text);font-size:23px;font-weight:700}.summary-copy>small{grid-column:1;color:#7c897f;font-size:10px}.filters-row{min-height:54px;display:flex;align-items:center;gap:13px;margin:14px 0}.search-field{min-width:260px;height:42px;display:flex;align-items:center;gap:10px;flex:1;padding:0 12px;border:1px solid #dce2dc;border-radius:6px;color:#78867b;background:#fff}.search-field:focus-within{border-color:#a5bba0;box-shadow:0 0 0 3px #709e6c17}.search-field input{width:100%;min-width:0;border:0;outline:0;color:#39443c;background:transparent;font-size:12px}.search-field input::placeholder{color:#879389}.search-field kbd{padding:4px 6px;border:1px solid #e5e9e5;border-radius:4px;color:#78847a;background:#f9faf9;font-family:inherit;font-size:10px;white-space:nowrap}.clear-search{min-width:25px;min-height:25px;display:grid;place-items:center;padding:2px;border:0;color:#8e9990;background:transparent;cursor:pointer}.status-filter{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:11px;white-space:nowrap}.select-wrap{position:relative}.select-wrap select{min-width:132px;height:40px;appearance:none;padding:0 32px 0 11px;border:1px solid #dce2dc;border-radius:6px;outline:0;color:#35443a;background:#fff;cursor:pointer;font-size:11px}.select-wrap>svg{position:absolute;top:12px;right:10px;color:#829087;pointer-events:none}.result-count{margin-left:auto;color:var(--muted);font-size:11px;white-space:nowrap}.result-count strong{color:#35443a;font-size:13px}.agenda-panel{overflow:hidden;border:1px solid #e0e6e0;border-radius:7px;background:#fff}.agenda-panel-head{min-height:75px;display:flex;align-items:center;justify-content:space-between;padding:15px 20px;border-bottom:1px solid #e8ece8}.agenda-panel-head>div{display:flex;align-items:baseline;gap:12px}.agenda-panel-head h2{margin:0;color:#29372d;font-size:16px;font-weight:700;text-transform:capitalize}.agenda-panel-head>div>span{color:var(--muted);font-size:12px}.day-count{padding:6px 10px;border-radius:20px;color:#64825f;background:#f1f6ef;font-size:10px;white-space:nowrap}.day-timeline{padding:10px 19px 18px 12px}.appointment-row{width:100%;display:grid;grid-template-columns:76px minmax(0,1fr);align-items:stretch;padding:7px 0;border:0;background:transparent;text-align:left;cursor:pointer}.appointment-time{position:relative;display:flex;justify-content:center;padding-top:20px;color:#46564b;font-size:12px;font-weight:700;font-variant-numeric:tabular-nums}.appointment-time>span{position:absolute;top:39px;bottom:-7px;left:50%;width:1px;background:#e5eae5}.appointment-row:last-child .appointment-time>span{display:none}.appointment-card{min-height:78px;display:flex;align-items:center;gap:16px;padding:12px 16px;border:1px solid #e2e7e2;border-left:3px solid #9ab295;border-radius:6px;background:#fff;transition:border-color .15s,box-shadow .15s,transform .15s}.appointment-row:hover .appointment-card{border-color:#cad7c7;box-shadow:0 2px 6px #27472a0d;transform:translate(2px)}.appointment-card.status-card-atendido{border-left-color:var(--green)}.appointment-card.status-card-faltou{border-left-color:#b99559}.appointment-card.status-card-cancelado{border-left-color:#ad7974}.patient-avatar{width:40px;height:40px;display:grid;place-items:center;flex:0 0 auto;border:1px solid #e4ecdf;border-radius:50%;color:#617e5d;background:#f0f5ed;font-size:13px;font-weight:700}.appointment-main{min-width:0;display:flex;flex:1;flex-direction:column;gap:5px}.patient-name{overflow:hidden;color:#26342a;font-size:14px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.appointment-subtitle{overflow:hidden;color:#69766c;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.appointment-professional{min-width:165px;display:flex;flex-direction:column;gap:5px}.appointment-professional>span{color:#849087;font-size:10px}.appointment-professional>strong{overflow:hidden;color:#4b5a4f;font-size:11px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.appointment-exam-count{min-width:94px;display:flex;align-items:center;gap:6px;color:#65845f}.appointment-exam-count strong{color:#45554a;font-size:14px}.appointment-exam-count span{color:var(--muted);font-size:10px}.status-badge{min-width:96px;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:6px 9px;border-radius:20px;font-size:10px;font-weight:700;white-space:nowrap}.status-badge svg{width:13px;height:13px}.status-agendado{color:#526e4d;background:#edf3ea}.status-atendido{color:#426d3f;background:#e9f2e7}.status-faltou{color:#896127;background:#f6f0e5}.status-cancelado{color:#8d5c57;background:#f5eceb}.appointment-chevron{flex:0 0 auto;color:#8b978d}.week-grid{min-height:470px;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));overflow:hidden;border:1px solid #e0e6e0;border-radius:7px;background:#fff}.week-column{min-width:0;border-right:1px solid #edf0ed}.week-column:last-child{border-right:0}.week-column.current{background:#fbfcfa}.week-day-heading{width:100%;min-height:75px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;border:0;border-bottom:1px solid #e9ede9;color:var(--muted);background:#fff;cursor:pointer}.week-column.current .week-day-heading{color:#42673f;background:#f3f7f1}.week-day-heading span{font-size:11px;text-transform:capitalize}.week-day-heading strong{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;font-size:13px}.week-column.current .week-day-heading strong{color:#fff;background:var(--green)}.week-day-items{display:grid;align-content:start;gap:8px;padding:9px 7px}.week-appointment{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:8px;border:1px solid #e7ece6;border-left:2px solid #8eab87;border-radius:5px;background:#fbfdf9;text-align:left;cursor:pointer}.week-appointment>strong{color:#526e4d;font-size:11px}.week-appointment>span:not(.status-badge){width:100%;overflow:hidden;color:#344238;font-size:10px;font-weight:600;text-overflow:ellipsis;white-space:normal}.week-appointment>small{color:var(--muted);font-size:9px;line-height:1.4}.week-appointment .status-badge{min-width:0;padding:4px 6px;font-size:9px}.week-empty{width:100%;height:30px;border:0;color:#a6b0a7;background:transparent;cursor:pointer}.month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));overflow:hidden;border:1px solid #e0e6e0;border-radius:7px;background:#fff}.month-weekday{min-height:41px;display:grid;place-items:center;border-right:1px solid #edf0ed;border-bottom:1px solid #e5eae5;color:var(--muted);background:#fbfcfb;font-size:11px;font-weight:700}.month-cell{min-width:0;min-height:105px;display:flex;flex-direction:column;align-items:stretch;gap:5px;padding:8px;border:0;border-right:1px solid #edf0ed;border-bottom:1px solid #edf0ed;background:#fff;text-align:left;cursor:pointer}.month-cell:hover{background:#f8fbf6}.month-cell.outside{background:#fafbfa}.month-cell.selected{box-shadow:inset 0 0 0 2px #8ba785}.month-date{width:25px;height:25px;display:grid;place-items:center;align-self:flex-end;border-radius:50%;color:#344238;font-size:11px}.month-date.today{color:#fff;background:var(--green);font-weight:700}.month-cell.outside .month-date{color:#aab4ab}.month-event{overflow:hidden;padding:4px 5px;border-left:2px solid #8ca987;border-radius:2px;color:#526256;background:#f2f6f0;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.month-event b{color:#3d603c}.status-border-atendido{border-left-color:var(--green)}.status-border-faltou{border-left-color:#b99559}.status-border-cancelado{border-left-color:#ad7974}.month-more{padding:2px 4px;color:#5b705d;font-size:9px}.history-list{display:grid;gap:24px}.history-date-group{display:grid;gap:10px}.history-date-label{display:flex;align-items:center;gap:10px;color:#657167}.history-date-marker{width:8px;height:8px;border-radius:50%;background:var(--green);box-shadow:0 0 0 3px #e6eee3}.history-date-label strong{color:#344238;font-size:13px;text-transform:capitalize}.history-date-label>span:last-child{margin-left:auto;color:var(--muted);font-size:11px}.history-items{overflow:hidden;border:1px solid #e0e6e0;border-radius:7px;background:#fff}.history-row{width:100%;min-height:84px;display:grid;grid-template-columns:68px minmax(190px,1.15fr) minmax(190px,.9fr) 112px 112px;align-items:center;gap:15px;padding:14px 17px;border:0;border-bottom:1px solid #e9ede9;background:#fff;text-align:left;cursor:pointer}.history-row:last-child{border-bottom:0}.history-row:hover{background:#f9fbf8}.history-time{color:#3f5643;font-size:14px;font-weight:700;font-variant-numeric:tabular-nums}.history-patient{min-width:0;display:flex;flex-direction:column;gap:6px}.history-patient strong{overflow:hidden;color:#26342a;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.history-patient span{color:var(--muted);font-size:11px;line-height:1.4}.history-exam-metrics{display:flex;flex-wrap:wrap;align-items:center;gap:8px 15px}.history-exam-metrics>span{display:inline-flex;align-items:center;gap:5px;color:var(--muted);font-size:11px;white-space:nowrap}.history-exam-metrics>span:first-child:before,.history-exam-metrics>span:last-child:before{width:7px;height:7px;border-radius:50%;content:""}.history-exam-metrics>span:first-child:before{background:var(--green)}.history-exam-metrics>span:last-child:before{background:#a7af9c}.history-exam-metrics strong{color:#35443a;font-size:12px}.history-row>.status-badge{justify-self:center}.history-open{display:inline-flex;align-items:center;justify-content:flex-end;gap:3px;color:var(--green-dark);font-size:11px;font-weight:600;white-space:nowrap}.history-open>svg{color:#6e8b68}.empty-state,.error-panel{min-height:310px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:30px;border:1px dashed #dce4dc;border-radius:7px;background:#fff;text-align:center}.empty-icon{width:48px;height:48px;display:grid;place-items:center;margin-bottom:14px;border-radius:50%;color:#62845c;background:#eff5ec}.empty-state h2,.error-panel h2{margin:0 0 8px;color:#35443a;font-size:16px}.empty-state p,.error-panel p{max-width:390px;margin:0 0 17px;color:var(--muted);font-size:12px;line-height:1.6}.empty-state .button{margin-top:3px}.error-icon{color:#865c52;background:#f7efed}.content-loading{min-height:285px;display:flex;align-items:center;justify-content:center;gap:11px;color:var(--muted);font-size:12px}.inline-error{display:flex;align-items:flex-start;gap:7px;margin:8px 0;padding:9px 10px;border:1px solid #e7d6d3;border-radius:5px;color:#845952;background:#fcf7f6;font-size:11px;line-height:1.5}.inline-error svg{flex:0 0 auto;margin-top:1px}.error-panel .button{margin-top:1px}.local-data-note{display:flex;align-items:center;justify-content:center;gap:7px;margin:18px 0 0;color:var(--muted);font-size:10px}.local-data-note svg{flex:0 0 auto;color:var(--green-dark)}.modal-backdrop{position:fixed;z-index:50;inset:0;display:flex;justify-content:flex-end;background:#19221b6b;animation:fade-in .16s ease-out}.detail-panel{width:min(540px,100%);height:100%;display:flex;flex-direction:column;background:#fff;box-shadow:-8px 0 25px #0a140c1a;animation:slide-in .2s ease-out}.detail-header{min-height:84px;display:flex;align-items:center;justify-content:space-between;padding:17px 25px;border-bottom:1px solid #e6eae6}.detail-header .eyebrow,.modal-header .eyebrow{margin-bottom:6px;font-size:9px}.detail-header h2,.modal-header h2{margin:0;color:#26342a;font-size:19px}.detail-header>.icon-button,.modal-header>.icon-button{color:#748077}.detail-scroll{overflow:auto;flex:1;padding:23px 25px}.detail-patient{display:flex;align-items:center;gap:14px;padding:0 0 21px;border-bottom:1px solid #e8ece8}.patient-avatar-large{width:50px;height:50px;font-size:17px}.detail-patient h3{margin:0 0 5px;color:#26342a;font-size:16px}.detail-patient span{color:var(--muted);font-size:11px}.detail-section{padding:20px 0;border-bottom:1px solid #e8ece8}.detail-section:last-child{border-bottom:0}.detail-section h4{display:flex;align-items:center;gap:8px;margin:0 0 15px;color:#35443a;font-size:13px}.detail-section h4 svg{color:#75936e}.personal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 22px}.detail-field{min-width:0;display:flex;flex-direction:column;gap:6px}.detail-field>span,.editable-field>span,.field-label>span{color:var(--muted);font-size:11px}.detail-field>strong{overflow-wrap:anywhere;color:#35443a;font-size:12px;font-weight:600;line-height:1.45}.appointment-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 20px;margin-bottom:17px}.editable-field{display:flex;flex-direction:column;gap:6px}.editable-field select,.field-label input,.field-label select,.field-label textarea{width:100%;min-height:40px;padding:8px 10px;border:1px solid #d8dfd8;border-radius:5px;outline:0;color:#344238;background:#fff;font-size:12px}.editable-field select{min-height:38px}.field-label{display:block;min-width:0}.field-label>span{display:block;margin-bottom:7px}.field-label>span b,.new-modal-footer>span b{color:#a65d50}.field-label textarea{min-height:78px;resize:vertical;line-height:1.55}.detail-observation{display:block}.exam-section-heading{display:flex;align-items:center;justify-content:space-between}.exam-section-heading h4{margin-bottom:15px}.exam-section-heading>span{color:var(--muted);font-size:11px}.exam-detail-list{overflow:hidden;border:1px solid #e3e8e3;border-radius:6px}.exam-detail-row{min-height:64px;display:flex;align-items:center;justify-content:space-between;gap:9px;padding:10px 12px;border-bottom:1px solid #e9ede9}.exam-detail-row:last-child{border-bottom:0}.exam-detail-name{min-width:0;display:flex;align-items:center;gap:10px}.exam-status-dot{width:8px;height:8px;flex:0 0 auto;border-radius:50%;background:#aeb7af}.exam-status-dot[data-status=realizado]{background:var(--green)}.exam-status-dot[data-status=nao_realizado]{background:#9d865a}.exam-detail-name>div{min-width:0;display:flex;flex-direction:column;gap:5px}.exam-detail-name strong{overflow:hidden;color:#35443a;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.exam-detail-name span{color:var(--muted);font-size:10px}.exam-detail-row select{width:137px;min-height:34px;padding:5px 8px;border:1px solid #d9e0d9;border-radius:5px;color:#46554a;background:#fff;font-size:10px}.independent-status-note{display:flex;align-items:flex-start;gap:7px;margin:12px 0 0;color:#617261;font-size:10px;line-height:1.55}.independent-status-note svg{flex:0 0 auto;color:#77936f}.no-exams{color:var(--muted);font-size:12px}.detail-footer{min-height:72px;display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:13px 25px;border-top:1px solid #e4e9e4;background:#fff}.new-appointment-modal{width:min(700px,100%);max-height:100%;display:flex;flex-direction:column;align-self:center;margin:auto;border:1px solid #e1e7e1;border-radius:8px;background:#fff;box-shadow:0 18px 50px #0e191029;animation:modal-up .19s ease-out}.modal-header{min-height:94px;display:flex;align-items:center;justify-content:space-between;padding:18px 25px;border-bottom:1px solid #e6eae6}.modal-header h2{margin-bottom:6px}.modal-header>div>span{color:var(--muted);font-size:11px}.new-appointment-modal form{min-height:0;display:flex;flex-direction:column}.modal-form-scroll{overflow:auto;padding:22px 25px 25px}.form-section-title{display:flex;align-items:center;gap:11px;margin:0 0 14px}.form-section-title>span{width:27px;height:27px;display:grid;place-items:center;border-radius:50%;color:#5c7c56;background:#edf4e9;font-size:10px;font-weight:700}.form-section-title>div{display:flex;flex-direction:column;gap:4px}.form-section-title strong{color:#35443a;font-size:12px}.form-section-title small{color:var(--muted);font-size:10px}.section-spaced{margin-top:23px}.modal-search{width:100%;min-height:41px}.search-feedback{display:flex;align-items:center;gap:7px;padding:10px 4px;color:var(--muted);font-size:11px;line-height:1.5}.autocomplete-results,.procedure-results{overflow:auto;max-height:200px;margin-top:5px;border:1px solid #e1e7e1;border-radius:6px;background:#fff;box-shadow:0 5px 14px #17271a0d}.autocomplete-results button{width:100%;display:flex;align-items:center;gap:10px;padding:10px;border:0;border-bottom:1px solid #edf0ed;background:#fff;text-align:left;cursor:pointer}.autocomplete-results button:last-child,.procedure-results button:last-child{border-bottom:0}.autocomplete-results button:hover,.procedure-results button:hover{background:#f7faf6}.autocomplete-results button>span{min-width:0;display:flex;flex:1;flex-direction:column;gap:4px}.autocomplete-results button strong{overflow:hidden;color:#35443a;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.autocomplete-results button small{color:var(--muted);font-size:10px}.autocomplete-results button>svg{color:#8c988e}.selected-patient{display:flex;align-items:center;gap:11px;padding:11px;border:1px solid #d8e4d5;border-radius:6px;background:#f8fbf6}.selected-patient>div:nth-child(2){min-width:0;display:flex;flex:1;flex-direction:column;gap:4px}.selected-patient strong{overflow:hidden;color:#35443a;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.selected-patient span{color:var(--muted);font-size:10px}.form-two-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.professional-field{margin-top:14px}.procedure-results button{width:100%;display:flex;align-items:center;gap:12px;padding:11px;border:0;border-bottom:1px solid #edf0ed;background:#fff;text-align:left;cursor:pointer}.procedure-code{min-width:84px;padding:5px 6px;border-radius:4px;color:#536d50;background:#f1f5ef;font-size:9px;text-align:center}.procedure-result-name{min-width:0;display:flex;flex:1;flex-direction:column;gap:5px}.procedure-result-name strong{overflow:hidden;color:#35443a;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.procedure-result-name small{color:var(--muted);font-size:9px}.procedure-results button>svg{color:#72906c}.selected-exams{display:grid;gap:7px;margin:11px 0}.selected-exam{display:flex;align-items:center;gap:9px;padding:9px;border:1px solid #e5ebe3;border-radius:5px;color:#75916f;background:#fbfcfa}.selected-exam>div{min-width:0;display:flex;flex:1;flex-direction:column;gap:4px}.selected-exam strong{overflow:hidden;color:#35443a;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.selected-exam span{color:var(--muted);font-size:9px}.selected-exam button{display:grid;place-items:center;padding:3px;border:0;color:#879389;background:transparent;cursor:pointer}.manual-procedure{margin-top:11px;padding:12px;border:1px dashed #dce4da;border-radius:6px;background:#fbfcfb}.manual-label{display:block;margin-bottom:8px;color:var(--muted);font-size:10px}.manual-procedure-fields{display:flex;gap:8px}.manual-procedure-fields input{min-width:0;min-height:36px;flex:1;padding:0 9px;border:1px solid #d8dfd8;border-radius:5px;outline:0;font-size:11px}.manual-procedure-fields input:nth-child(2){max-width:150px}.manual-procedure-fields .button{min-height:36px;padding:0 10px;font-size:10px}.new-modal-footer{min-height:69px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 25px;border-top:1px solid #e4e9e4}.new-modal-footer>span{color:var(--muted);font-size:10px}.new-modal-footer>div{display:flex;gap:9px}.confirm-backdrop{position:fixed;z-index:90;inset:0;display:grid;place-items:center;padding:20px;background:#19221b7a;animation:fade-in .14s ease-out}.confirm-dialog{width:min(420px,100%);padding:24px;border:1px solid #e1e7e1;border-radius:8px;background:#fff;box-shadow:0 12px 40px #0f1c112b;animation:modal-up .16s ease-out}.confirm-icon{width:40px;height:40px;display:grid;place-items:center;margin-bottom:15px;border-radius:50%;color:var(--green-dark);background:#edf4e9}.confirm-icon-danger{color:#8d5c57;background:#f5eceb}.confirm-dialog h2{margin:0 0 9px;color:var(--text);font-size:17px}.confirm-dialog p{margin:0;color:var(--muted);font-size:12px;line-height:1.6}.confirm-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:22px}.toast{position:fixed;z-index:100;right:25px;bottom:24px;max-width:min(450px,calc(100vw - 32px));display:flex;align-items:center;gap:9px;padding:12px 15px;border:1px solid #d7e5d3;border-radius:7px;color:#476d44;background:#f5faf2;box-shadow:0 8px 24px #14231521;font-size:12px;animation:modal-up .18s ease-out}.toast-error{border-color:#efd6d0;color:#8d5c57;background:#fff8f6}.toast svg{flex:0 0 auto}.spinner{width:21px;height:21px;display:inline-block;border:2px solid #e3ebe1;border-top-color:var(--green);border-radius:50%;animation:spin .75s linear infinite}.spinner-small{width:14px;height:14px;border-width:2px}.mobile-bottom-nav{display:none}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes slide-in{0%{transform:translate(14px);opacity:.7}to{transform:translate(0);opacity:1}}@keyframes modal-up{0%{transform:translateY(8px);opacity:.7}to{transform:translateY(0);opacity:1}}@media(max-width:1200px){.sidebar{width:248px}.main-content{margin-left:248px}.topbar,.page-content{padding-right:28px;padding-left:28px}.appointment-card{gap:12px}.appointment-professional{min-width:140px}.history-row{grid-template-columns:57px minmax(160px,1.1fr) minmax(160px,.9fr) 105px 100px;gap:11px;padding-right:12px;padding-left:12px}}@media(max-width:980px){.sidebar{width:224px}.main-content{margin-left:224px}.page-content,.topbar{padding-right:20px;padding-left:20px}.page-heading h1{font-size:25px}.appointment-professional{min-width:125px}.appointment-professional>strong{max-width:130px}.history-row{grid-template-columns:48px minmax(145px,1fr) minmax(145px,.85fr) 98px}.history-open{display:none}}@media(max-width:820px){.sidebar{z-index:60;width:min(300px,calc(100vw - 45px));padding:22px 17px 15px;transform:translate(-105%);transition:transform .22s ease;box-shadow:12px 0 35px #0a140c29}.sidebar.sidebar-open{transform:translate(0)}.sidebar-scrim{position:fixed;z-index:55;inset:0;display:block;border:0;background:#11181373}.mobile-close{display:inline-grid;margin-left:auto;color:#aeb8af}.main-content{margin-left:0}.topbar{height:62px;gap:10px;padding:0 16px}.mobile-menu-button{width:34px;height:34px;display:inline-grid;color:#536057}.breadcrumb{gap:6px;font-size:11px}.breadcrumb strong{font-size:11px}.topbar-right{gap:8px}.today-chip{display:none}.brand-logo-light.topbar-logo{width:29px;height:29px}.topbar-demo-label{padding:5px 7px;font-size:9px}.page-content{padding:20px 16px 98px}.demo-banner{gap:9px;margin-bottom:20px;padding:10px}.demo-banner-icon{width:29px;height:29px}.demo-banner strong{font-size:9px}.demo-banner>div>span{font-size:10px}.demo-banner>button{min-height:31px;font-size:9px}.page-heading{align-items:flex-start;gap:12px;margin-bottom:17px}.eyebrow{margin-bottom:7px;font-size:9px}.page-heading h1{font-size:23px}.page-subtitle{max-width:310px;margin-top:6px;font-size:12px}.heading-actions{align-items:flex-end;gap:8px}.municipality-badge{height:30px;max-width:150px;overflow:hidden;padding:0 9px;font-size:9px;text-overflow:ellipsis}.heading-actions .button{min-height:36px;padding:0 10px;font-size:10px}.toolbar{min-height:55px;gap:7px;padding:8px}.period-navigation{min-width:0;gap:2px}.period-arrow{width:30px;height:30px}.period-title{min-width:0;max-width:165px;justify-content:flex-start;gap:6px;padding:4px;overflow:hidden;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.period-title svg{width:15px;height:15px;flex:0 0 auto}.button-today{min-height:30px;padding:0 8px;font-size:10px}.view-switch{height:32px;flex:0 0 auto}.view-switch button{min-width:39px;padding:0 6px;font-size:9px}.history-period{width:100%;gap:8px}.history-period>svg{flex:0 0 auto}.history-period>label{gap:5px;font-size:10px}.history-period input{width:124px;height:34px;padding:0 6px;font-size:10px}.summary-row{gap:8px;margin:12px 0}.summary-card{min-height:75px;gap:8px;padding:10px}.summary-icon{width:31px;height:31px}.summary-copy{column-gap:5px}.summary-copy>span{font-size:9px}.summary-copy>strong{font-size:19px}.summary-copy>small{font-size:8px}.filters-row{flex-wrap:wrap;gap:8px;margin:11px 0}.search-field{min-width:100%;height:40px}.search-field input{font-size:11px}.status-filter{gap:7px;font-size:10px}.select-wrap select{min-width:120px;height:36px;font-size:10px}.select-wrap>svg{top:10px}.result-count{margin-left:auto;font-size:10px}.appointment-row{grid-template-columns:52px minmax(0,1fr)}.appointment-time{padding-top:19px;font-size:11px}.appointment-card{min-height:74px;gap:9px;padding:9px}.patient-avatar{width:34px;height:34px;font-size:11px}.appointment-main{gap:4px}.patient-name{font-size:12px}.appointment-subtitle{font-size:10px}.appointment-professional{display:none}.appointment-exam-count{min-width:43px;gap:4px}.appointment-exam-count svg{width:14px}.appointment-exam-count strong{font-size:12px}.appointment-exam-count span{display:none}.status-badge{min-width:0;gap:4px;padding:5px 7px;font-size:9px}.status-badge svg{width:12px;height:12px}.appointment-chevron{display:none}.agenda-panel-head{min-height:67px;padding:12px 14px}.agenda-panel-head h2{font-size:14px}.agenda-panel-head>div>span{font-size:10px}.day-timeline{padding:8px 8px 12px 4px}.week-grid{min-height:420px;overflow-x:auto;grid-template-columns:repeat(7,minmax(105px,1fr))}.week-day-heading{min-height:67px}.week-day-heading span{font-size:10px}.week-appointment{gap:5px;padding:7px}.month-cell{min-height:76px;gap:4px;padding:5px 4px}.month-weekday{min-height:34px;font-size:9px}.month-date{width:21px;height:21px;font-size:10px}.month-event{padding:3px;font-size:8px}.history-row{min-height:91px;grid-template-columns:43px minmax(0,1fr) auto;gap:7px 9px;padding:11px 10px}.history-time{grid-column:1;grid-row:1;font-size:12px}.history-patient{grid-column:2;grid-row:1;gap:4px}.history-patient strong{font-size:11px}.history-patient span{font-size:9px}.history-exam-metrics{grid-column:2 / 4;grid-row:2;gap:7px 12px}.history-exam-metrics>span{gap:5px;font-size:9px}.history-exam-metrics>span:first-child:before,.history-exam-metrics>span:last-child:before{width:6px;height:6px}.history-exam-metrics strong{font-size:10px}.history-row>.status-badge{grid-column:3;grid-row:1;justify-self:end;font-size:8px}.history-open{display:none}.mobile-bottom-nav{position:fixed;z-index:40;right:0;bottom:0;left:0;height:calc(62px + env(safe-area-inset-bottom));display:flex;align-items:stretch;justify-content:space-around;padding:5px 8px max(5px,env(safe-area-inset-bottom));border-top:1px solid #e5eae5;background:#fffffff7;box-shadow:0 -3px 12px #1628180a}.mobile-bottom-nav button{min-width:67px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:0;border-radius:6px;color:#758077;background:transparent;cursor:pointer;font-size:10px}.mobile-bottom-nav button.active{color:var(--green-dark);background:#f3f7f1;font-weight:700}.mobile-bottom-nav button:last-child{color:#4f7a4b}.modal-backdrop{align-items:flex-end}.detail-panel{width:100%;height:min(94vh,880px);border-radius:12px 12px 0 0;animation:modal-up .2s ease-out}.detail-header{min-height:72px;padding:13px 17px}.detail-header h2,.modal-header h2{font-size:17px}.detail-scroll{padding:17px}.detail-section{padding:17px 0}.detail-section h4{font-size:12px}.detail-field>span,.editable-field>span,.field-label>span{font-size:10px}.detail-field>strong{font-size:11px}.editable-field select,.field-label input,.field-label select,.field-label textarea{min-height:38px;font-size:11px}.exam-detail-row{min-height:59px;padding:8px}.exam-detail-name strong{font-size:11px}.exam-detail-row select{width:127px;font-size:9px}.independent-status-note{font-size:9px}.detail-footer{min-height:62px;padding:10px 16px}.new-appointment-modal{width:100%;max-height:94vh;margin:0;border-radius:12px 12px 0 0}.modal-header{min-height:82px;padding:13px 17px}.modal-header>div>span{font-size:10px}.modal-form-scroll{padding:17px}.form-section-title strong{font-size:11px}.form-section-title small{font-size:9px}.manual-procedure-fields{flex-wrap:wrap}.manual-procedure-fields input:first-child{flex-basis:55%}.manual-procedure-fields input:nth-child(2){max-width:none;flex:1}.manual-procedure-fields .button{width:100%}.new-modal-footer{min-height:62px;padding:9px 14px}.new-modal-footer>div{gap:7px}.new-modal-footer .button{min-height:35px;padding:0 10px;font-size:10px}.toast{right:12px;bottom:calc(73px + env(safe-area-inset-bottom));left:12px;max-width:none;font-size:11px}.local-data-note{align-items:flex-start;font-size:9px;line-height:1.5;text-align:center}}@media(max-width:540px){.topbar{padding:0 13px}.topbar-demo-label{display:none}.page-content{padding-right:13px;padding-left:13px}.demo-banner{align-items:flex-start;flex-wrap:wrap;gap:8px;padding:9px}.demo-banner-icon{width:28px;height:28px}.demo-banner>div{flex-basis:calc(100% - 40px)}.demo-banner strong{font-size:8px}.demo-banner>div>span{font-size:9px}.demo-banner>button{min-height:30px;margin-left:36px;font-size:9px}.page-heading{gap:8px}.page-heading h1{font-size:21px}.page-subtitle{max-width:230px;font-size:11px}.heading-actions .municipality-badge{max-width:115px;height:28px;gap:5px;padding:0 7px;font-size:8px}.heading-actions .button{min-height:34px;gap:5px;padding:0 8px;font-size:9px}.heading-actions .button svg{width:15px}.toolbar{gap:4px;padding:7px 5px}.period-navigation{gap:0}.period-arrow{width:27px;height:29px}.period-title{max-width:130px;gap:4px;font-size:9px}.button-today{min-height:28px;padding:0 6px;font-size:9px}.view-switch{height:30px}.view-switch button{min-width:34px;padding:0 4px;font-size:8px}.history-period{gap:6px}.history-period>label{gap:4px;font-size:9px}.history-period input{width:116px;height:33px;padding:0 4px;font-size:9px}.summary-row{gap:6px}.summary-card{min-height:69px;gap:5px;padding:8px 6px}.summary-icon{width:27px;height:27px}.summary-icon svg{width:14px;height:14px}.summary-copy{column-gap:3px}.summary-copy>span{font-size:8px}.summary-copy>strong{font-size:17px}.summary-copy>small{font-size:7px}.filters-row{column-gap:7px}.search-field{height:38px;gap:7px;padding:0 9px}.search-field kbd{display:none}.status-filter{gap:5px;font-size:9px}.select-wrap select{min-width:104px;height:34px;padding-left:7px;font-size:9px}.select-wrap>svg{top:9px;right:7px}.result-count{font-size:9px}.result-count strong{font-size:11px}.appointment-row{grid-template-columns:44px minmax(0,1fr)}.appointment-time{padding-top:17px;font-size:10px}.appointment-card{min-height:68px;gap:7px;padding:7px}.patient-avatar{width:30px;height:30px;font-size:10px}.patient-name{font-size:10px}.appointment-subtitle{font-size:9px}.appointment-exam-count{min-width:29px;gap:3px}.appointment-exam-count svg{display:none}.appointment-exam-count strong{font-size:10px}.appointment-exam-count span{display:none}.status-badge{gap:3px;padding:4px 5px;font-size:8px}.status-badge svg{width:10px;height:10px}.agenda-panel-head{min-height:61px;padding:10px 11px}.agenda-panel-head>div{display:block}.agenda-panel-head h2{margin-bottom:3px;font-size:12px}.agenda-panel-head>div>span{font-size:9px}.day-count{padding:5px 7px;font-size:8px}.day-timeline{padding-right:5px;padding-left:2px}.week-grid{grid-template-columns:repeat(7,minmax(100px,1fr))}.month-cell{min-height:67px;gap:3px;padding:4px 3px}.month-weekday{min-height:30px;font-size:8px}.month-date{width:19px;height:19px;font-size:9px}.month-event{padding:2px;font-size:7px}.month-event b{display:none}.month-more{padding-left:2px;font-size:7px}.history-row{min-height:88px;grid-template-columns:37px minmax(0,1fr) auto;gap:7px;padding:10px 8px}.history-time{font-size:10px}.history-patient{gap:4px}.history-patient strong{font-size:10px}.history-patient span{font-size:8px}.history-exam-metrics{gap:6px 9px}.history-exam-metrics>span{gap:4px;font-size:8px}.history-exam-metrics>span:first-child:before,.history-exam-metrics>span:last-child:before{width:6px;height:6px}.history-exam-metrics strong{font-size:9px}.history-row>.status-badge{padding:4px 5px;font-size:7px}.history-row>.status-badge svg{width:9px;height:9px}.detail-header{padding:12px 15px}.detail-scroll{padding:15px}.detail-footer{min-height:60px;padding:9px 13px}.new-modal-footer{padding:8px 12px}.new-modal-footer>span{display:none}.new-modal-footer .button{min-height:34px;padding:0 8px;font-size:9px}.new-modal-footer>div{gap:6px}.modal-header{min-height:76px;padding:12px 15px}.modal-form-scroll{padding:15px}.form-section-title strong{font-size:10px}.form-section-title small{font-size:8px}.form-two-columns{gap:8px}.manual-procedure-fields{flex-wrap:wrap}.manual-procedure-fields input:first-child{flex-basis:55%}.manual-procedure-fields input:nth-child(2){max-width:none;flex:1}.manual-procedure-fields .button{width:100%}.local-data-note{font-size:8px}.toast{bottom:calc(73px + env(safe-area-inset-bottom))}}@media(max-width:360px){.heading-actions .municipality-badge{display:none}.period-title{max-width:108px}.period-navigation{gap:0}.period-arrow{width:25px}.history-period>svg{display:none}.history-period input{width:106px}.history-exam-metrics{gap:5px}.confirm-dialog{padding:20px}.confirm-actions .button{padding:0 10px}}.exam-summary-row{grid-template-columns:repeat(4,minmax(0,1fr));margin-top:16px}.exam-summary-card{min-width:0}.summary-muted .summary-icon{color:#806f57;background:#f5f1e9}.exam-filters{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:14px 0;padding:12px;border:1px solid #e2e7e2;border-radius:7px;background:#fff}.exam-search{min-width:245px;height:38px;flex:1 1 245px}.exam-search input{font-size:11px}.exam-date-filter,.exam-filter-select{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:10px;white-space:nowrap}.exam-date-filter input{width:137px;height:36px;padding:0 7px;border:1px solid #dce2dc;border-radius:5px;color:#35443a;background:#fff;font-size:10px}.exam-filter-select .select-wrap select{min-width:120px;max-width:190px;height:36px;padding-right:28px;font-size:10px}.exam-filter-select:last-of-type .select-wrap select{max-width:205px}.exam-filter-select .select-wrap>svg{top:10px}.exam-filters .result-count{margin-left:auto}.exam-table-wrap{overflow-x:auto;border:1px solid #e0e6e0;border-radius:7px;background:#fff}.exam-table{width:100%;border-collapse:collapse;text-align:left}.exam-table th{height:43px;padding:0 13px;border-bottom:1px solid #e5eae5;color:#68756b;background:#fafbfa;font-size:10px;font-weight:700;white-space:nowrap}.exam-table td{min-height:65px;padding:11px 13px;border-bottom:1px solid #e9ede9;color:#35443a;font-size:11px;vertical-align:middle}.exam-table tbody tr:last-child td{border-bottom:0}.exam-table tbody tr:hover{background:#fafcf9}.exam-table-name{min-width:140px;display:flex;flex-direction:column;gap:5px}.exam-table-name strong{color:#2f3d33;font-size:11px;font-weight:700;line-height:1.4}.exam-table-name span{color:#758177;font-size:10px;line-height:1.4}.exam-professional{display:block;min-width:125px;max-width:190px;color:#526057;font-size:10px;line-height:1.5}.exam-status-pill{min-width:96px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:6px 9px;border-radius:20px;font-size:10px;font-weight:700;white-space:nowrap}.exam-status-pill>i{width:6px;height:6px;border-radius:50%;background:currentColor}.exam-status-pendente{color:#84652f;background:#f7f1e5}.exam-status-realizado{color:#426d3f;background:#e9f2e7}.exam-status-nao_realizado{color:#875b55;background:#f5eceb}.exam-details-button{display:inline-flex;align-items:center;gap:2px;padding:6px 0 6px 6px;border:0;color:var(--green-dark);background:transparent;cursor:pointer;font-size:10px;font-weight:700;white-space:nowrap}.exam-details-button:hover{color:#365e34}.exam-empty{margin-top:12px}.exam-detail-status,.exam-observation{margin-top:16px}.linked-exam-row{width:100%;min-height:61px;display:flex;align-items:center;justify-content:space-between;gap:9px;padding:9px 10px;border:0;border-bottom:1px solid #e9ede9;background:#fff;text-align:left;cursor:pointer}.linked-exam-row:last-child{border-bottom:0}.linked-exam-row:hover{background:#f8fbf7}.linked-exam-row .exam-status-pill{min-width:0;padding:5px 7px;font-size:9px}.exam-change-history>ol{display:grid;gap:11px;margin:0;padding:0;list-style:none}.exam-change-history>ol li{display:flex;flex-direction:column;gap:4px;padding-left:12px;border-left:2px solid #dce7d8}.exam-change-history>ol strong{color:#405344;font-size:11px}.exam-change-history>ol span,.exam-change-history>p{margin:0;color:var(--muted);font-size:10px;line-height:1.5}.exam-change-history>p{padding:10px;border-radius:5px;background:#f7f9f6}.visually-hidden{position:absolute;overflow:hidden;width:1px;height:1px;clip:rect(0,0,0,0);white-space:nowrap;clip-path:inset(50%)}@media(max-width:1200px){.exam-filters{gap:8px;padding:10px}.exam-date-filter input{width:126px}.exam-filter-select .select-wrap select{min-width:105px}.exam-table th,.exam-table td{padding-right:9px;padding-left:9px}}@media(max-width:980px){.exam-summary-row{gap:8px}.exam-filters{align-items:flex-start}.exam-search{flex-basis:100%}.exam-filters .result-count{align-self:center}.exam-table-wrap{overflow-x:auto}.exam-table{min-width:850px}}@media(max-width:820px){.exam-summary-row{grid-template-columns:repeat(2,minmax(0,1fr))}.exam-summary-card{min-height:70px}.exam-filters{gap:8px}.exam-search{min-width:100%}.exam-date-filter{gap:5px}.exam-date-filter input{width:126px;height:34px;font-size:9px}.exam-filter-select{gap:5px;font-size:9px}.exam-filter-select .select-wrap select{min-width:100px;max-width:145px;height:34px;font-size:9px}.exam-filter-select:last-of-type .select-wrap select{max-width:155px}.exam-filters .result-count{margin-left:auto}}@media(max-width:540px){.exam-summary-row{gap:6px}.exam-summary-card{min-height:69px}.exam-filters{gap:7px 8px;padding:9px}.exam-date-filter{gap:4px;font-size:8px}.exam-date-filter input{width:116px;padding:0 4px;font-size:9px}.exam-filter-select{flex:1 1 42%;justify-content:space-between}.exam-filter-select .select-wrap{flex:1}.exam-filter-select .select-wrap select,.exam-filter-select:last-of-type .select-wrap select{width:100%;min-width:0;max-width:none;padding-left:7px;font-size:9px}.exam-filters .result-count{margin-right:2px}.exam-table-wrap{overflow:visible;border:0;border-radius:0;background:transparent}.exam-table{min-width:0;display:block}.exam-table thead{display:none}.exam-table tbody{display:grid;gap:9px}.exam-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 10px;padding:9px 11px;border:1px solid #e0e6e0;border-radius:7px;background:#fff}.exam-table td{min-width:0;min-height:0;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 0;border:0}.exam-table td:before{flex:0 0 auto;color:#7a867d;content:attr(data-label);font-size:9px}.exam-table td:first-child{grid-column:1 / -1;padding-top:3px}.exam-table td:first-child:before{content:""}.exam-table td:nth-child(2){grid-column:1 / -1}.exam-table td:nth-child(3),.exam-table td:nth-child(4),.exam-table td:nth-child(5),.exam-table td:nth-child(6){grid-column:1 / -1}.exam-table-name{min-width:0}.exam-table-name strong{font-size:10px}.exam-table-name span{font-size:9px}.exam-professional{min-width:0;max-width:70%;text-align:right;font-size:9px}.exam-status-pill{min-width:0;padding:5px 7px;font-size:9px}.exam-details-button{min-height:30px}.exam-detail-panel{height:min(94vh,880px)}}.login-screen-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px;background:linear-gradient(145deg,#1f2421,#29322c,#1f2421)}.login-card-container{width:100%;max-width:440px;background:#fff;border-radius:14px;padding:38px 34px;box-shadow:0 20px 40px #00000040,0 1px 3px #0000001a;border:1px solid rgba(255,255,255,.15)}.login-header-section{text-align:center;margin-bottom:24px}.login-brand-logo{height:48px;width:auto;margin:0 auto 16px;display:block}.login-header-badges{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;margin-bottom:12px}.login-badge-pill{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;padding:3px 10px;border-radius:12px;background:#edf7e8;color:#3b6637;border:1px solid #cce5c2}.login-module-tag{display:inline-block;font-size:11px;font-weight:600;padding:3px 10px;border-radius:12px;background:#f1f5f9;color:#475569}.login-header-section h1{font-size:20px;font-weight:800;color:#1e293b;margin:6px 0;letter-spacing:-.01em}.login-header-section p{font-size:13px;color:#64748b;margin:0;line-height:1.45}.login-error-alert{display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:8px;background:#fef2f2;border:1px solid #fecaca;color:#991b1b;font-size:12px;font-weight:600;margin-bottom:20px}.login-form{display:flex;flex-direction:column;gap:18px}.login-field-group{display:flex;flex-direction:column;gap:6px}.login-field-group label{display:flex;align-items:baseline;justify-content:space-between;font-size:12px;font-weight:700;color:#334155}.login-field-group label small{font-size:11px;font-weight:500;color:#64748b}.login-input-wrapper{position:relative;display:flex;align-items:center}.login-input-icon{position:absolute;left:12px;color:#94a3b8;pointer-events:none}.login-input-wrapper input{width:100%;height:42px;padding:0 12px 0 38px;border:1.5px solid #cbd5e1;border-radius:8px;font-size:13.5px;color:#1e293b;background:#f8fafc;transition:all .15s ease}.login-input-wrapper input:focus{background:#fff;border-color:#709e6c;box-shadow:0 0 0 3px #709e6c33}.login-input-helper{font-size:11px;color:#64748b;padding-left:2px}.login-pass-header{display:flex;align-items:center;justify-content:space-between}.login-toggle-pass{background:none;border:none;font-size:11px;font-weight:600;color:#557e51;cursor:pointer;padding:0}.login-toggle-pass:hover{text-decoration:underline}.login-caps-warning{display:flex;align-items:center;gap:5px;font-size:11px;color:#b45309;font-weight:600}.login-submit-button{width:100%;height:44px;margin-top:6px;border-radius:8px;border:none;background:#557e51;color:#fff;font-size:14px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;transition:background .15s ease,transform .05s ease}.login-submit-button:hover:not(:disabled){background:#476a44}.login-submit-button:active:not(:disabled){transform:scale(.99)}.login-spinner{width:16px;height:16px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.login-footer-info{margin-top:24px;padding-top:20px;border-top:1px solid #f1f5f9;display:flex;flex-direction:column;gap:8px}.login-footer-item{display:flex;align-items:center;gap:8px;font-size:11.5px;color:#64748b}.login-check-icon{color:#10b981;flex-shrink:0}.topbar-user-section{display:flex;align-items:center;gap:10px}.user-profile-badge{display:flex;align-items:center;gap:8px;padding:4px 10px;border-radius:8px;background:#f1f5f9;border:1px solid #e2e8f0}.user-profile-avatar{width:26px;height:26px;border-radius:50%;background:#709e6c;color:#fff;font-weight:700;font-size:12px;display:flex;align-items:center;justify-content:center}.user-profile-details{display:flex;flex-direction:column}.user-profile-name{font-size:12px;font-weight:700;color:#1e293b;line-height:1.2}.user-profile-role{font-size:10px;color:#64748b;line-height:1.1}.btn-logout{background:transparent;border:1px solid #cbd5e1;color:#64748b;padding:6px 12px;border-radius:6px;font-size:12px;font-weight:600;display:inline-flex;align-items:center;gap:6px;cursor:pointer;transition:all .15s}.btn-logout:hover{background:#fee2e2;border-color:#fca5a5;color:#b91c1c}.lab-quota-info-banner{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:12px 16px;margin-bottom:16px;border-radius:10px;background:linear-gradient(90deg,#f0fdf4,#f8fafc);border:1px solid #bbf7d0;color:#166534;font-size:13px}.lab-quota-info-left{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.lab-quota-pill{display:inline-flex;align-items:center;padding:2px 9px;border-radius:999px;background:#dcfce7;border:1px solid #86efac;color:#15803d;font-size:11.5px;font-weight:700}.lab-quota-info-right{font-size:12px;color:#15803d;font-weight:500}.exam-group-count-badge{display:inline-flex;align-items:center;margin-top:3px;padding:1px 7px;border-radius:999px;background:#ecfdf5;border:1px solid #a7f3d0;color:#047857;font-size:11px;font-weight:600;width:fit-content}.exam-row-actions{display:inline-flex;align-items:center;justify-content:flex-end;gap:6px}.exam-schedule-action-btn{display:inline-flex;align-items:center;gap:5px;padding:6px 11px;border-radius:7px;border:1px solid #557e51;background:#557e51;color:#fff;font-size:12px;font-weight:600;cursor:pointer;transition:background .15s ease,transform .05s ease;white-space:nowrap}.exam-schedule-action-btn:hover{background:#436640;border-color:#436640}.exam-inline-scheduler{margin-top:10px;padding:14px;border-radius:10px;background:#f8fafc;border:1px solid #e2e8f0;display:flex;flex-direction:column;gap:12px}.exam-scheduler-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.exam-quota-meter{padding:10px 12px;border-radius:8px;background:#f0fdf4;border:1px solid #bbf7d0;font-size:12.5px;color:#166534}.exam-quota-meter.is-shifted{background:#fffbeb;border-color:#fde68a;color:#92400e}.exam-quota-meter-row{display:flex;align-items:center;justify-content:space-between;gap:8px}.exam-quota-shift-alert{display:flex;align-items:flex-start;gap:10px;padding:11px 13px;border-radius:8px;background:#fffbeb;border:1px solid #fcd34d;color:#92400e;font-size:12.5px;line-height:1.4}.exam-quota-shift-alert svg{flex-shrink:0;color:#d97706;margin-top:2px}.exam-quota-shift-alert strong{display:block;font-weight:700;color:#78350f}.exam-quota-shift-alert p{margin:3px 0 0;color:#92400e}.exam-schedule-all-check{display:flex;align-items:center;gap:8px;font-size:12.5px;color:#334155;cursor:pointer;-webkit-user-select:none;user-select:none}.exam-schedule-all-check input[type=checkbox]{width:16px;height:16px;accent-color:#557e51;cursor:pointer}.exam-schedule-submit-btn{width:100%;justify-content:center}.schedule-exams-modal{max-width:560px}.exam-checklist-box{margin-top:14px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc;overflow:hidden}.exam-checklist-header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px;background:#f1f5f9;border-bottom:1px solid #e2e8f0;font-size:12.5px}.exam-checklist-items{display:flex;flex-direction:column;max-height:210px;overflow-y:auto}.exam-checklist-item{display:flex;align-items:center;gap:10px;padding:10px 14px;border-bottom:1px solid #f1f5f9;cursor:pointer;transition:background .12s ease}.exam-checklist-item:last-child{border-bottom:none}.exam-checklist-item:hover{background:#fff}.exam-checklist-item.is-checked{background:#f0fdf4}.exam-checklist-item input[type=checkbox]{width:16px;height:16px;accent-color:#557e51;flex-shrink:0}.exam-checklist-item div{flex:1;min-width:0;display:flex;flex-direction:column}.exam-checklist-item strong{font-size:13px;color:#1e293b}.exam-checklist-item span{font-size:11px;color:#64748b}.exam-status-dot[data-status=agendado]{background:#0284c7!important}.exam-status-agendado{color:#0369a1!important;background:#e0f2fe!important;border:1px solid #bae6fd!important}.history-card-details{display:flex;flex-direction:column;gap:4px;font-size:11px;color:#64748b;margin-top:4px}.history-audit-row{display:flex;align-items:center;gap:6px;font-size:11.5px;color:#334155}.history-audit-row strong{color:#0f172a}.history-badge-audit{display:inline-flex;align-items:center;gap:4px;padding:1px 7px;border-radius:4px;background:#f1f5f9;border:1px solid #e2e8f0;color:#475569;font-size:10.5px;font-weight:600}.history-badge-audit.atendido{background:#dcfce7;border-color:#86efac;color:#15803d}.history-badge-audit.agendado{background:#e0f2fe;border-color:#7dd3fc;color:#0369a1}.history-exam-list-tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:5px}.history-exam-tag{display:inline-flex;align-items:center;gap:5px;padding:2px 8px;border-radius:6px;background:#fff;border:1px solid #cbd5e1;font-size:11px;color:#334155}.history-exam-tag[data-status=realizado]{background:#f0fdf4;border-color:#bbf7d0;color:#166534}.history-exam-tag[data-status=agendado]{background:#f0f9ff;border-color:#bae6fd;color:#0369a1}.history-exam-tag[data-status=nao_realizado]{background:#fef2f2;border-color:#fecaca;color:#991b1b}.detail-audit-container{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:12px 14px;border-radius:8px;background:#f8fafc;border:1px solid #e2e8f0;margin-bottom:16px}.detail-audit-cell{display:flex;flex-direction:column;gap:3px}.detail-audit-cell span{font-size:10.5px;color:#64748b;text-transform:uppercase;font-weight:600;letter-spacing:.03em}.detail-audit-cell strong{font-size:12px;color:#0f172a}
