#tab-preObra{padding:0;background:#eef3f8}
.po-tabs button.sgo-access-locked::after,.po-actions .po-btn.sgo-access-locked::after{top:auto;right:-2px;bottom:-3px;width:9px;height:9px;border-width:1px;font-size:5px;box-shadow:0 1px 2px rgba(15,23,42,.14)}
.po-access-empty{min-height:180px;display:grid;place-items:center;border:1px solid #d5e0ea;border-radius:11px;background:#fff;color:#64748b;font-size:.7rem;font-weight:750}
.po-shell{min-height:calc(100vh - 185px);padding:8px 10px 18px;color:#172033;font-family:Inter,Arial,sans-serif}
.po-head{position:relative;top:auto;z-index:auto;height:auto;min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:11px 15px;border:1px solid #cad8e6;border-radius:14px;background:linear-gradient(110deg,#0b3554 0%,#145b66 60%,#18796c 100%);color:#fff;box-shadow:0 7px 22px rgba(15,23,42,.1)}
.po-title>span{display:block;color:#99f6e4;font-size:.56rem;font-weight:900;letter-spacing:.16em}.po-title h2{margin:2px 0 1px;font-size:1.25rem;line-height:1.1}.po-title p{margin:0;color:#d7e9ee;font-size:.68rem}
.po-kpis{display:grid;grid-template-columns:repeat(4,minmax(90px,1fr));gap:7px}.po-kpis>div{min-width:92px;padding:7px 9px;border:1px solid rgba(255,255,255,.22);border-radius:9px;background:rgba(255,255,255,.11)}.po-kpis span{display:block;color:#cce6e8;font-size:.5rem;font-weight:850;letter-spacing:.07em;text-transform:uppercase}.po-kpis strong{display:block;margin-top:2px;font-size:.84rem;white-space:nowrap}
.po-command{position:sticky;z-index:15;top:0;display:flex;align-items:center;gap:10px;margin:7px 0;padding:6px 8px;border:1px solid #d6e0ea;border-radius:11px;background:rgba(255,255,255,.96);box-shadow:0 4px 13px rgba(15,23,42,.07)}
.po-current{display:grid;grid-template-columns:auto auto;gap:0 7px;min-width:150px;padding-right:10px;border-right:1px solid #e2e8f0}.po-current span{grid-column:1/-1;color:#64748b;font-size:.48rem;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.po-current b{font-size:.67rem}.po-current em{font-size:.58rem;color:#0f766e;font-style:normal;font-weight:800}
.po-tabs{display:flex;align-items:center;gap:4px;flex:1}.po-tabs button{height:28px;padding:0 10px;border:1px solid transparent;border-radius:7px;background:transparent;color:#526176;font-size:.62rem;font-weight:800;cursor:pointer}.po-tabs button:hover{background:#f1f5f9}.po-tabs button.active{border-color:#0f766e;background:#e4f5f1;color:#0f5f56}
.po-actions{display:flex;gap:5px}.po-btn,.po-mini-btn{border:1px solid #cbd5e1;border-radius:7px;background:#fff;color:#334155;font-weight:800;cursor:pointer}.po-btn{height:29px;padding:0 10px;font-size:.61rem}.po-mini-btn{height:26px;padding:0 9px;font-size:.58rem}.po-btn.primary{border-color:#0f766e;background:#0f766e;color:#fff}.po-btn.pdf{border-color:#1d4ed8;background:#2563eb;color:#fff}.po-btn.danger{border-color:#fecaca;color:#b91c1c;background:#fff7f7}.po-btn:disabled{opacity:.4;cursor:not-allowed}.po-btn:hover,.po-mini-btn:hover{border-color:#60a5fa;background:#eff6ff}.po-btn.pdf:hover{border-color:#1e40af;background:#1d4ed8}
.po-btn.edit{border-color:#bfdbfe;background:#eff6ff;color:#1d4ed8}.po-btn.cancel{border-color:#fed7aa;background:#fff7ed;color:#c2410c}
.po-content{display:block}.po-stack{display:grid;gap:8px}.po-panel{overflow:hidden;border:1px solid #d5e0ea;border-radius:11px;background:#fff;box-shadow:0 3px 12px rgba(15,23,42,.04)}
.po-content.po-readonly input:disabled,.po-content.po-readonly textarea:disabled,.po-content.po-readonly select:disabled{opacity:1;background:#f3f6f9;color:#526176;cursor:not-allowed}.po-content.po-readonly button:disabled{opacity:.48;cursor:not-allowed}.po-content.po-readonly .po-implant-stage:not(.has-image){cursor:not-allowed}
.po-section-title{min-height:34px;padding:5px 10px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #dbe4ee;background:#f7fafc}.po-section-title h3{margin:0;color:#16324a;font-size:.68rem;font-weight:900;letter-spacing:.055em;text-transform:uppercase}.po-section-title span{display:block;margin-top:1px;color:#6b7c90;font-size:.54rem}
.po-general-grid{display:grid;grid-template-columns:minmax(380px,1.05fr) minmax(420px,.95fr);gap:8px}.po-implant-stage{position:relative;height:326px;margin:8px;display:grid;place-items:center;overflow:hidden;border:1px dashed #9eb5c9;border-radius:9px;background:linear-gradient(135deg,#f7fafc,#edf4f6);cursor:pointer}.po-implant-stage.has-image{border-style:solid;background:#111827}.po-implant-img{width:100%;height:100%;object-fit:contain}.po-upload-empty{display:grid;place-items:center;gap:4px;color:#64748b;text-align:center}.po-upload-empty i{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:#dff3ef;color:#0f766e;font-size:1.3rem;font-style:normal}.po-upload-empty strong{font-size:.7rem}.po-upload-empty span{font-size:.56rem}.po-image-actions{position:absolute;right:8px;bottom:8px;display:flex;gap:4px}.po-image-actions button{padding:5px 8px;border:0;border-radius:6px;background:rgba(255,255,255,.92);color:#0f172a;font-size:.56rem;font-weight:850;cursor:pointer}.po-image-actions button.danger{color:#b91c1c}
.po-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:9px}.po-form-grid label{display:grid;gap:3px}.po-form-grid label.wide{grid-column:1/-1}.po-form-grid label>span{font-size:.54rem;font-weight:850;color:#526176;text-transform:uppercase;letter-spacing:.05em}.po-form-grid input,.po-form-grid select,.po-form-grid textarea,.po-control-table input,.po-control-table select,.po-simple-table input,.po-simple-table select,.po-simple-table textarea,.po-attachment input,.po-attachment select,.po-photo-slot input{box-sizing:border-box;width:100%;border:1px solid #cbd8e5;border-radius:7px;background:#fff;color:#172033;font:600 .65rem Inter,Arial,sans-serif;outline:none}.po-form-grid input,.po-form-grid select{height:31px;padding:0 8px}.po-form-grid textarea{padding:7px 8px;resize:vertical}.po-form-grid input:focus,.po-form-grid select:focus,.po-form-grid textarea:focus,.po-control-table input:focus,.po-control-table select:focus,.po-simple-table input:focus,.po-simple-table textarea:focus{border-color:#3b82f6;box-shadow:0 0 0 2px rgba(59,130,246,.1)}.po-form-grid input[readonly]{background:#f4f7fa;color:#64748b}
.po-records{margin-top:8px}.po-visit-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:6px;padding:8px}.po-visit-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 9px;border:1px solid #d8e2ec;border-radius:8px;background:#fff;text-align:left;cursor:pointer}.po-visit-item.active{border-color:#0f766e;background:#eefaf7}.po-visit-item span{display:grid;gap:2px}.po-visit-item b{font-size:.64rem}.po-visit-item small{color:#64748b;font-size:.54rem}.po-visit-item strong{color:#0f766e;font-size:.72rem}
.po-table-scroll{overflow:auto}.po-control-table,.po-simple-table{width:100%;border-collapse:collapse;table-layout:fixed}.po-control-table th,.po-simple-table th{padding:6px 7px;background:#e9f0f6;color:#41536a;font-size:.53rem;text-align:left;text-transform:uppercase;letter-spacing:.05em}.po-control-table td,.po-simple-table td{padding:4px 5px;border-top:1px solid #e2e8f0;font-size:.62rem}.po-control-table th:nth-child(1){width:25%}.po-control-table th:nth-child(2){width:13%}.po-control-table th:nth-child(3){width:34%}.po-control-table th:nth-child(4){width:16%}.po-control-table th:nth-child(5){width:12%}.po-control-label{font-weight:750;color:#26364a}.po-control-table input,.po-control-table select,.po-simple-table input,.po-simple-table select{height:27px;padding:0 6px}.po-simple-table textarea{padding:5px 6px;resize:vertical}.po-status.ok{background:#ecfdf5;color:#047857}.po-status.andamento{background:#fffbeb;color:#b45309}.po-status.pendente{background:#fff1f2;color:#be123c}.po-status.na{background:#f1f5f9;color:#64748b}.po-group-row td{padding:5px 8px;background:#dce8f1;color:#1d4763;font-size:.53rem;font-weight:900;text-transform:uppercase;letter-spacing:.07em}.po-legend{display:flex;align-items:center;gap:5px;color:#64748b;font-size:.52rem}.po-legend i{width:7px;height:7px;border-radius:50%}.po-legend i.ok{background:#10b981}.po-legend i.andamento{background:#f59e0b}.po-legend i.pendente{background:#ef4444}
.po-simple-table th:last-child{width:35px}.po-simple-table .po-icon,.po-icon{width:25px;height:25px;border:1px solid #d8e2ec;border-radius:6px;background:#fff;cursor:pointer}.po-icon.danger{color:#dc2626}.po-minutes-table th:nth-child(1){width:17%}.po-minutes-table th:nth-child(2){width:34%}.po-minutes-table th:nth-child(3){width:15%}.po-minutes-table th:nth-child(4){width:12%}.po-minutes-table th:nth-child(5){width:13%}
.po-photo-grid{display:grid;grid-template-columns:repeat(5,minmax(130px,1fr));gap:7px;padding:8px}.po-photo-slot{position:relative;min-height:142px;border:1px solid #d6e0ea;border-radius:9px;background:#f8fafc;overflow:hidden}.po-photo-slot.empty{display:grid;place-items:center;align-content:center;gap:4px;color:#64748b;cursor:pointer}.po-photo-slot.empty i{font-size:1.2rem;font-style:normal;color:#0f766e}.po-photo-slot.empty span{font-size:.58rem;font-weight:800}.po-photo-preview{position:relative;width:100%;height:106px;padding:0;border:0;background:#e2e8f0;cursor:pointer}.po-photo-preview img{width:100%;height:100%;object-fit:cover}.po-photo-preview span{position:absolute;left:5px;bottom:5px;padding:2px 5px;border-radius:5px;background:rgba(15,23,42,.72);color:#fff;font-size:.5rem;font-weight:800}.po-photo-slot input{height:29px;margin:3px;width:calc(100% - 6px);padding:0 6px;font-size:.56rem}.po-photo-remove{position:absolute;right:5px;top:5px;width:22px;height:22px;border:0;border-radius:50%;background:rgba(185,28,28,.9);color:#fff;font-size:.9rem;cursor:pointer}
.po-attachment-list{display:grid;gap:5px;padding:8px}.po-attachment{display:grid;grid-template-columns:minmax(210px,1fr) 150px minmax(220px,1.25fr) 28px;align-items:center;gap:6px;padding:5px;border:1px solid #dbe4ee;border-radius:8px}.po-file-open{display:flex;align-items:center;gap:7px;min-width:0;border:0;background:transparent;text-align:left;cursor:pointer}.po-file-open i{width:28px;height:28px;display:grid;place-items:center;border-radius:7px;background:#e0f2fe;color:#0369a1;font-style:normal}.po-file-open span{display:grid;min-width:0}.po-file-open b,.po-file-open small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.po-file-open b{font-size:.61rem}.po-file-open small{color:#64748b;font-size:.5rem}.po-attachment input,.po-attachment select{height:28px;padding:0 6px}
.po-empty-rows{padding:14px;color:#7b8ca0;font-size:.62rem;text-align:center}.po-lightbox,.po-confirm{position:fixed;z-index:10050;inset:0;display:grid;place-items:center;padding:24px;background:rgba(8,15,28,.72)}.po-lightbox[hidden],.po-confirm[hidden]{display:none}.po-lightbox-body{position:relative;width:min(1080px,92vw);max-height:88vh;padding:12px;border-radius:12px;background:#fff;box-shadow:0 25px 70px rgba(0,0,0,.35)}.po-lightbox-body h3{margin:0 0 8px;font-size:.75rem}.po-lightbox-body img{display:block;max-width:100%;max-height:78vh;margin:auto}.po-lightbox-close{position:fixed;z-index:2;right:26px;top:20px;width:36px;height:36px;border:0;border-radius:50%;background:#fff;color:#111827;font-size:1.4rem;cursor:pointer}.po-confirm>div{width:min(410px,90vw);padding:15px;border-radius:12px;background:#fff;box-shadow:0 25px 70px rgba(0,0,0,.35)}.po-confirm h3{margin:0;font-size:.82rem}.po-confirm p{margin:9px 0 14px;color:#526176;font-size:.68rem;line-height:1.45}.po-confirm footer{display:flex;justify-content:flex-end;gap:6px}
.po-pdf-host{position:fixed;z-index:0;left:-20000px;top:0;width:1120px;background:#fff;color:#172033;font-family:Inter,Arial,sans-serif}
.po-pdf-page{position:relative;box-sizing:border-box;width:1120px;height:790px;overflow:hidden;background:#fff}
.po-pdf-header{box-sizing:border-box;height:94px;padding:16px 24px;display:flex;align-items:center;justify-content:space-between;background:linear-gradient(105deg,#10213d 0%,#0f5f64 100%);color:#fff}
.po-pdf-header span{display:block;color:#6ee7e0;font-size:10px;font-weight:900;letter-spacing:1.5px}.po-pdf-header h1{margin:4px 0 2px;font-size:23px;line-height:1.05}.po-pdf-header p{margin:0;color:#d9e7ed;font-size:10px}.po-pdf-header-side{max-width:340px;text-align:right}.po-pdf-header-side b{display:block;font-size:17px}.po-pdf-header-side small{display:block;margin-top:5px;color:#d9e7ed;font-size:10px}
.po-pdf-body{box-sizing:border-box;height:666px;padding:18px 22px 22px}.po-pdf-page-number{position:absolute;left:22px;right:22px;bottom:7px;padding-top:5px;border-top:1px solid #d8e1e9;color:#66778a;font-size:8px;text-align:right}
.po-pdf-summary{display:grid;grid-template-columns:42% 58%;gap:14px}.po-pdf-summary>section,.po-pdf-block{overflow:hidden;border:1px solid #cbd8e5;border-radius:10px;background:#fff}.po-pdf-summary h2,.po-pdf-block h2{box-sizing:border-box;height:31px;margin:0;padding:9px 12px;background:#e8f2f3;color:#123d52;font-size:11px;letter-spacing:.5px;text-transform:uppercase}.po-pdf-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:11px}.po-pdf-field{min-height:43px;padding:7px 9px;border:1px solid #dce5ed;border-radius:7px;background:#f8fafc}.po-pdf-field.wide{grid-column:1/-1}.po-pdf-field span{display:block;margin-bottom:4px;color:#64748b;font-size:8px;font-weight:850;text-transform:uppercase}.po-pdf-field b{display:block;font-size:10px;line-height:1.35;white-space:pre-wrap}.po-pdf-implant{box-sizing:border-box;height:454px;margin:11px;display:grid;place-items:center;overflow:hidden;border:1px solid #dce5ed;border-radius:8px;background:#eef3f6}.po-pdf-implant img{width:100%;height:100%;object-fit:contain}.po-pdf-image-empty{color:#7b8ca0;font-size:12px;font-weight:750}.po-pdf-summary-strip{margin-top:14px;display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.po-pdf-summary-strip>div{padding:12px 14px;border-left:5px solid #0f766e;border-radius:8px;background:#edf6f5}.po-pdf-summary-strip span{display:block;color:#526176;font-size:9px;font-weight:800;text-transform:uppercase}.po-pdf-summary-strip b{display:block;margin-top:4px;color:#10213d;font-size:20px}
.po-pdf-block+.po-pdf-block{margin-top:13px}.po-pdf-table{width:100%;border-collapse:collapse;table-layout:fixed}.po-pdf-table th{padding:7px 8px;border:1px solid #c9d5e1;background:#dae5ef;color:#34495e;font-size:8px;text-align:left;text-transform:uppercase}.po-pdf-table td{height:25px;padding:5px 7px;border:1px solid #d8e1e9;color:#172033;font-size:8.5px;line-height:1.22;vertical-align:middle;overflow-wrap:anywhere}.po-pdf-table tbody tr:nth-child(even):not(.po-pdf-group){background:#f8fafc}.po-pdf-control th:nth-child(1){width:24%}.po-pdf-control th:nth-child(2){width:12%}.po-pdf-control th:nth-child(3){width:36%}.po-pdf-control th:nth-child(4){width:16%}.po-pdf-control th:nth-child(5){width:12%}.po-pdf-group td{height:20px;padding:4px 8px;background:#bdd7de;color:#123d52;font-size:8px;font-weight:900;text-transform:uppercase}.po-pdf-status{display:inline-block;padding:3px 6px;border-radius:10px;font-size:7.5px;font-weight:900}.po-pdf-status.ok{background:#d1fae5;color:#047857}.po-pdf-status.andamento{background:#fef3c7;color:#a16207}.po-pdf-status.pendente{background:#fee2e2;color:#b91c1c}.po-pdf-status.na{background:#e2e8f0;color:#475569}.po-pdf-contacts .po-pdf-table th:nth-child(1){width:22%}.po-pdf-contacts .po-pdf-table th:nth-child(2){width:26%}.po-pdf-contacts .po-pdf-table th:nth-child(3){width:18%}.po-pdf-contacts .po-pdf-table th:nth-child(4){width:34%}.po-pdf-minutes .po-pdf-table th:nth-child(1){width:18%}.po-pdf-minutes .po-pdf-table th:nth-child(2){width:40%}.po-pdf-minutes .po-pdf-table th:nth-child(3){width:16%}.po-pdf-minutes .po-pdf-table th:nth-child(4){width:12%}.po-pdf-minutes .po-pdf-table th:nth-child(5){width:14%}.po-pdf-minutes .po-pdf-table td{height:55px;vertical-align:top}.po-pdf-docs th:nth-child(1){width:5%}.po-pdf-docs th:nth-child(2){width:28%}.po-pdf-docs th:nth-child(3){width:20%}.po-pdf-docs th:nth-child(4){width:47%}
.po-pdf-photo-grid{height:622px;display:grid;grid-template-columns:repeat(5,1fr);grid-template-rows:repeat(2,1fr);gap:10px}.po-pdf-photo{overflow:hidden;border:1px solid #cbd8e5;border-radius:9px;background:#fff}.po-pdf-photo>div{height:244px;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#eef3f6}.po-pdf-photo img{display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain}.po-pdf-photo.is-empty>div{border-bottom:1px dashed #cbd8e5;color:#8a9aab;font-size:10px;font-weight:800}.po-pdf-photo footer{box-sizing:border-box;height:57px;padding:7px 8px}.po-pdf-photo footer b{display:block;color:#0f5f64;font-size:9px;text-transform:uppercase}.po-pdf-photo footer p{height:29px;margin:3px 0 0;color:#334155;font-size:8px;line-height:1.25;overflow:hidden}
@media(max-width:1050px){.po-head{align-items:flex-start}.po-kpis{grid-template-columns:repeat(2,1fr)}.po-command{flex-wrap:wrap}.po-tabs{order:3;flex-basis:100%}.po-general-grid{grid-template-columns:1fr}.po-photo-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:720px){.po-shell{padding:6px}.po-head{display:grid}.po-kpis{grid-template-columns:repeat(2,1fr)}.po-command{align-items:stretch}.po-current{flex-basis:100%;width:100%;padding:0 0 6px;border-right:0;border-bottom:1px solid #e2e8f0}.po-actions{order:2;width:100%;max-width:100%;margin-left:0;padding-bottom:3px;overflow-x:auto}.po-actions .po-btn{flex:0 0 auto}.po-tabs{order:3;flex-basis:100%;width:100%;padding-bottom:3px;overflow-x:auto}.po-tabs button{flex:0 0 auto}.po-general-grid{grid-template-columns:1fr}.po-form-grid{grid-template-columns:1fr}.po-form-grid label.wide{grid-column:auto}.po-photo-grid{grid-template-columns:repeat(2,1fr)}.po-attachment{grid-template-columns:1fr}.po-control-table{min-width:850px}.po-simple-table{min-width:760px}}
