/* v6.14.89 — detalhe da O.S. responsivo, cabeçalho laranja e contato por WhatsApp. */
.so-detail-screen{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;overflow:hidden!important}
.so-detail-head{position:relative;isolation:isolate;overflow:hidden;display:grid!important;grid-template-columns:minmax(300px,430px) minmax(210px,280px) minmax(360px,1fr)!important;align-items:start!important;gap:14px!important;min-width:0!important;background:linear-gradient(112deg,#a94305 0%,#c95308 45%,#e97818 100%)!important;color:#fff!important}
.so-detail-head:before{content:"";position:absolute;z-index:-2;inset:-20px;background-image:radial-gradient(circle,rgba(255,242,220,.48) 0 1px,transparent 1.35px);background-size:9px 9px;opacity:.2;animation:os-detail-led-grid 10s linear infinite;pointer-events:none}
.so-detail-head:after{content:"";position:absolute;z-index:-1;top:-55%;bottom:-55%;left:-65%;width:48%;background:linear-gradient(90deg,transparent,rgba(255,247,227,.08) 18%,rgba(255,252,239,.45) 50%,rgba(255,247,227,.1) 82%,transparent);filter:blur(.35px);transform:skewX(-18deg);animation:os-detail-led-scan 5.6s ease-in-out infinite;pointer-events:none}
.so-detail-head .so-detail-title{position:relative;display:flex!important;align-items:center!important;align-self:start!important;margin:0!important;padding:17px 0 0!important;min-width:0!important;width:auto!important;box-sizing:border-box;color:#fff!important;background:transparent!important}
.so-detail-head .so-detail-title:before,.so-detail-head .so-detail-title:after{display:none!important}
.so-detail-head .so-detail-title>*{position:relative;z-index:1;min-width:0}.so-detail-head .so-detail-title>div>b{color:#fff!important;text-shadow:0 1px 2px rgba(74,22,0,.32)}
.so-detail-head .so-v518-status{background:rgba(255,255,255,.94)!important;color:#42536d!important;border-color:rgba(255,255,255,.65)!important}
.so-detail-head .so-back{border-color:rgba(255,255,255,.46)!important;background:rgba(101,33,0,.25)!important;color:#fff!important;box-shadow:none!important;white-space:nowrap}.so-detail-head .so-back:hover{background:rgba(101,33,0,.42)!important}
.so-detail-head .so-detail-actions{min-width:0!important;display:flex!important;align-self:start!important;justify-content:flex-end!important;gap:10px!important;padding-top:17px!important}.so-detail-head .so-detail-actions>*{white-space:nowrap}
@keyframes os-detail-led-grid{to{background-position:18px 9px}}@keyframes os-detail-led-scan{0%,16%{left:-65%;opacity:0}27%{opacity:.9}63%{opacity:.62}76%,100%{left:125%;opacity:0}}
.so-detail-head .so-status-top{grid-column:auto!important;justify-self:center!important;width:100%!important;max-width:280px!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#fff!important;display:grid!important;grid-template-columns:1fr!important;align-items:center!important;gap:4px!important;min-width:0!important}
.so-detail-head .so-status-top h3{display:none!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}.so-detail-head .so-status-top label{display:grid!important;gap:5px!important;margin:0!important;padding:0!important;color:#fff!important;font-size:12px!important;font-weight:800!important;line-height:1.1!important;min-width:0!important}
.so-detail-head .so-status-top select,.so-detail-head .so-status-top input{width:100%!important;min-width:0!important;height:40px!important;margin-top:2px!important;padding:7px 32px 7px 10px!important;border:1px solid rgba(255,255,255,.75)!important;border-radius:9px!important;background:#fff!important;color:#14213a!important;font-size:13px!important}
.so-detail-head .so-status-top .so-status-note,.so-detail-head .so-status-top .so-status-submit{grid-column:1!important}.so-detail-head .so-status-top .so-status-submit{width:100%!important;min-height:38px!important;margin:0!important}
.so-detail-head .so-status-top [hidden]{display:none!important}
.so-detail-head .so-status-feedback{display:block!important;margin-top:2px!important;color:#fff4e8!important;font-size:11px!important;font-weight:800!important;text-align:center!important}
.so-detail-screen .so-detail-grid{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;grid-template-columns:minmax(0,1fr) clamp(270px,22vw,340px)!important;gap:14px!important}
.so-detail-screen .so-detail-grid>main,.so-detail-screen .so-detail-grid>aside{min-width:0!important;width:auto!important;max-width:100%!important}.so-detail-screen .so-detail-box{min-width:0!important;max-width:100%!important;box-sizing:border-box!important;overflow:hidden}.so-detail-screen input,.so-detail-screen select,.so-detail-screen textarea,.so-detail-screen button{max-width:100%;box-sizing:border-box}
.so-detail-screen .so-media-details{width:100%!important;min-width:0!important;box-sizing:border-box!important}.so-detail-screen .so-media-details>summary{min-height:42px!important;border:1px solid #f0bd96!important;border-radius:10px!important;background:#fff3e9!important;color:#b94904!important;font-weight:800!important}.so-detail-screen .so-media-details[open]>summary{min-height:auto!important;margin:0 0 10px!important;padding:3px 5px!important;border:0!important;background:transparent!important;justify-content:flex-end!important;font-size:12px!important}.so-detail-screen .so-media-details>summary .so-media-summary-file{display:none!important}.so-detail-screen .so-media-form{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:11px!important;width:100%!important;min-width:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;box-sizing:border-box!important}.so-detail-screen .so-media-form>*{grid-column:1!important;width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important}.so-detail-screen .so-file-picker{display:grid!important;grid-template-columns:1fr!important;gap:7px!important;width:100%!important;padding:12px!important;border:1px dashed #e4a676!important;border-radius:11px!important;background:#fffaf6!important;box-sizing:border-box!important}.so-detail-screen .so-file-add{border-color:#df9b67!important;background:#fff!important;color:#b94904!important}.so-detail-screen .so-file-selection{overflow-wrap:anywhere!important}.so-detail-screen .so-media-form label{display:grid!important;gap:5px!important;margin:0!important}.so-detail-screen .so-media-form select,.so-detail-screen .so-media-form input:not([type=checkbox]){width:100%!important;min-width:0!important}.so-detail-screen .so-media-form .so-visible-check{display:flex!important;align-items:center!important;gap:8px!important}.so-detail-screen .so-media-form .so-visible-check input{width:auto!important;flex:0 0 auto}

/* Formulário de anexos compacto: uma ação por linha e estado do arquivo evidente. */
.so-detail-screen .so-media-details[open]{padding:10px!important;border:1px solid #e2e8f0!important;border-radius:12px!important;background:#fff!important}
.so-detail-screen .so-media-details[open]>summary{display:flex!important;width:max-content!important;max-width:100%!important;min-height:30px!important;margin:0 0 10px auto!important;padding:5px 9px!important;border:1px solid #d7e0ea!important;border-radius:8px!important;background:#f7f9fc!important;color:#53647c!important;box-shadow:none!important;line-height:1!important}
.so-detail-screen .so-media-details[open]>summary .so-media-summary-action{display:inline-flex!important;align-items:center!important;gap:5px!important;font-size:12px!important}
.so-detail-screen .so-media-details[open]>summary .so-media-summary-action:before{content:'×';font-size:17px;font-weight:500;line-height:.8}
.so-detail-screen .so-media-form{gap:12px!important}
.so-detail-screen .so-file-picker{gap:8px!important;padding:14px!important;border:1.5px dashed #e0a16f!important;border-radius:12px!important;background:#fffbf7!important;text-align:center!important}
.so-detail-screen .so-file-add{min-height:40px!important;border:1px solid #df9b67!important;border-radius:9px!important;background:#fff!important;color:#b94904!important;font-size:14px!important;font-weight:800!important}
.so-detail-screen .so-file-selection{padding:2px 0!important;color:#50627a!important;font-size:12px!important;font-weight:700!important;overflow-wrap:anywhere!important}
.so-detail-screen .so-file-drop-hint{color:#7b8798!important;font-size:11px!important}
.so-detail-screen .so-file-clear{width:max-content!important;min-height:28px!important;margin:0 auto!important;padding:4px 9px!important;border:0!important;border-radius:7px!important;background:#fff1f0!important;color:#b42318!important;font-size:11px!important;font-weight:800!important}
.so-detail-screen .so-file-picker.has-files{grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;text-align:left!important;background:#f7fff9!important;border-style:solid!important;border-color:#a9dfc2!important}
.so-detail-screen .so-file-picker.has-files .so-file-add{grid-column:1/-1!important;background:#f1fff7!important;border-color:#8fd1ae!important;color:#087b4a!important}
.so-detail-screen .so-file-picker.has-files .so-file-selection{grid-column:1!important;color:#087b4a!important;font-size:13px!important}
.so-detail-screen .so-file-picker.has-files .so-file-drop-hint{display:none!important}
.so-detail-screen .so-file-picker.has-files .so-file-clear{grid-column:2!important;margin:0!important}
.so-detail-screen .so-media-form label:not(.so-visible-check){gap:6px!important;color:#24344d!important;font-size:12px!important;font-weight:800!important}
.so-detail-screen .so-media-form select,.so-detail-screen .so-media-form input:not([type=checkbox]){min-height:39px!important;padding:8px 10px!important;border:1px solid #ccd7e4!important;border-radius:8px!important;background:#fff!important;color:#17243b!important}
.so-detail-screen .so-media-form .so-visible-check{min-height:42px!important;padding:9px 11px!important;border:1px solid #dce5ee!important;border-radius:9px!important;background:#f8fafc!important;color:#24344d!important;font-size:12px!important;font-weight:750!important}
.so-detail-screen .so-media-form>button[type=submit]{min-height:43px!important;border:0!important;border-radius:9px!important;background:#18a66a!important;color:#fff!important;font-weight:800!important;box-shadow:0 5px 12px rgba(24,166,106,.16)!important}

/* Cartão de mídia com prévia e ações no cabeçalho. */
.so-detail-screen .so-detail-box:has(>.so-media-details)>h3{display:flex!important;align-items:center!important;gap:9px!important}
.so-detail-screen .so-media-header-toggle{margin-left:auto!important;padding:5px 8px!important;border:0!important;background:transparent!important;color:#315f9a!important;font-size:12px!important;font-weight:800!important;box-shadow:none!important}
.so-detail-screen .so-media-header-toggle:hover{background:#edf4ff!important;border-radius:7px!important}
.so-detail-screen .so-media-details>summary{display:none!important}
.so-detail-screen .so-media-details[open]{padding:12px!important;border:1px solid #dbe4ee!important;border-radius:12px!important;background:#fff!important}
.so-detail-screen .so-file-picker{padding:0!important;border:1px solid #dce5ee!important;border-radius:11px!important;background:#fff!important;overflow:hidden!important}
.so-detail-screen .so-file-picker:not(.has-files){padding:12px!important;border-style:dashed!important;background:#fffbf7!important}
.so-detail-screen .so-file-preview{grid-column:1/-1!important;width:100%!important;background:#eef2f5!important}
.so-detail-screen .so-file-preview[hidden]{display:none!important}
.so-detail-screen .so-file-preview-media{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-height:150px!important;max-height:230px!important;overflow:hidden!important;background:#e7ecef!important}
.so-detail-screen .so-file-preview-media img,.so-detail-screen .so-file-preview-media video{display:block!important;width:100%!important;max-height:230px!important;object-fit:contain!important;background:#e7ecef!important}
.so-detail-screen .so-file-preview-placeholder{color:#53647c!important;font-size:13px!important;font-weight:700!important}
.so-detail-screen .so-file-picker.has-files{grid-template-columns:minmax(0,1fr) auto auto!important;gap:8px!important;padding:0 10px 10px!important;border-color:#dce5ee!important;background:#fff!important}
.so-detail-screen .so-file-picker.has-files .so-file-selection{grid-column:1!important;padding:9px 0 0!important;color:#17243b!important;font-size:13px!important;font-weight:800!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.so-detail-screen .so-file-picker.has-files .so-file-size{grid-column:1!important;margin-top:-8px!important;color:#6b778c!important;font-size:11px!important}
.so-detail-screen .so-file-picker.has-files .so-file-clear{grid-column:2!important;grid-row:2/4!important;align-self:center!important;min-height:34px!important;padding:5px 8px!important;background:transparent!important;color:#b42318!important}
.so-detail-screen .so-file-picker.has-files .so-file-clear:before{content:'🗑';display:block;font-size:14px!important}
.so-detail-screen .so-file-picker.has-files .so-file-add{grid-column:3!important;grid-row:2/4!important;align-self:center!important;min-height:36px!important;padding:6px 12px!important;border:1px solid #ccd7e4!important;background:#fff!important;color:#24344d!important;font-size:12px!important}
.so-detail-screen .so-file-picker.has-files .so-file-drop-hint{display:none!important}
@media(max-width:640px){.so-detail-screen .so-file-preview-media{min-height:130px!important}.so-detail-screen .so-file-picker.has-files{grid-template-columns:minmax(0,1fr) auto!important}.so-detail-screen .so-file-picker.has-files .so-file-clear{grid-column:2!important}.so-detail-screen .so-file-picker.has-files .so-file-add{grid-column:1/-1!important;grid-row:auto!important;width:100%!important}}
.so-detail-screen a.so-whatsapp-link{display:inline-flex!important;align-items:center!important;gap:8px!important;color:#07824d!important;font-weight:800;text-decoration:underline;text-underline-offset:2px}.so-detail-screen a.so-whatsapp-link .so-whatsapp-icon{display:block!important;width:24px!important;height:24px!important;flex:0 0 24px!important;object-fit:contain!important}
.so-detail-screen h3 .so-section-icon{display:inline-grid!important;place-items:center!important;width:22px!important;height:22px!important;flex:0 0 22px!important;color:#c65308!important}.so-detail-screen h3 .so-section-icon svg{display:block!important;width:19px!important;height:19px!important;fill:none!important;stroke:currentColor!important;stroke-width:2!important;stroke-linecap:round!important;stroke-linejoin:round!important}.so-detail-screen h3[data-v61491-icon]{display:flex!important;align-items:center!important;gap:8px!important}

/* Tela principal da O.S.: uma única identidade laranja e ícones consistentes. */
#service-orders>.so-catalog-context{display:none!important}
#serviceOrderListPanel{margin-top:0!important;padding:0!important;overflow:visible!important;border:0!important;background:transparent!important;box-shadow:none!important}
#serviceOrderListPanel>.so-dashboard-head{position:relative;isolation:isolate;overflow:hidden;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:18px!important;margin:0 0 14px!important;padding:22px 26px!important;border:0!important;border-radius:16px!important;background:linear-gradient(112deg,#a94305 0%,#ca5509 48%,#ed7e1b 100%)!important;color:#fff!important;box-shadow:0 7px 18px rgba(166,66,4,.17)!important}
#serviceOrderListPanel>.so-dashboard-head:before{content:"";position:absolute;z-index:-2;inset:-20px;background-image:radial-gradient(circle,rgba(255,242,220,.45) 0 1px,transparent 1.35px);background-size:9px 9px;opacity:.2;animation:os-detail-led-grid 10s linear infinite;pointer-events:none}
#serviceOrderListPanel>.so-dashboard-head:after{content:"";position:absolute;z-index:-1;top:-60%;bottom:-60%;left:-55%;width:40%;background:linear-gradient(90deg,transparent,rgba(255,252,239,.42),transparent);transform:skewX(-18deg);animation:os-detail-led-scan 5.6s ease-in-out infinite;pointer-events:none}
#serviceOrderListPanel>.so-dashboard-head span,#serviceOrderListPanel>.so-dashboard-head h2,#serviceOrderListPanel>.so-dashboard-head p{color:#fff!important}
#serviceOrderListPanel>.so-dashboard-head span{display:block!important;color:#ffe3c9!important;font-weight:800!important;letter-spacing:.08em!important}
#serviceOrderListPanel>.so-dashboard-head h2{margin:4px 0!important;font-size:25px!important}
#serviceOrderListPanel>.so-dashboard-head p{margin:0!important;color:#fff4ea!important}
#serviceOrderListPanel>.so-dashboard-head .primary{min-height:44px!important;padding:0 20px!important;border:1px solid rgba(255,255,255,.64)!important;border-radius:11px!important;background:#fff!important;color:#a94305!important;font-weight:800!important;box-shadow:0 5px 13px rgba(91,27,0,.18)!important}
#serviceOrderListPanel>.so-dashboard-head .primary:hover{background:#fff6ee!important}
#serviceOrderListPanel .so-kpis{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important;padding:0 0 14px!important}
#serviceOrderListPanel .so-kpis article{position:relative!important;min-width:0!important;min-height:110px!important;padding:18px 68px 18px 20px!important;border-color:#e1e6ec!important;border-radius:15px!important;background:#fff!important;box-shadow:0 2px 7px rgba(16,26,49,.07)!important}
#serviceOrderListPanel .so-kpis article:after{display:none!important}
#serviceOrderListPanel .so-kpi-icon{position:absolute!important;right:16px!important;top:18px!important;display:grid!important;place-items:center!important;width:44px!important;height:44px!important;border-radius:13px!important;background:#fff0e3!important;color:#ce5a08!important}
#serviceOrderListPanel .so-kpi-icon svg{display:block!important;width:23px!important;height:23px!important;fill:none!important;stroke:currentColor!important;stroke-width:2.15!important;stroke-linecap:round!important;stroke-linejoin:round!important}
#serviceOrderListPanel .analysis .so-kpi-icon{background:#fff7df!important;color:#dd7d00!important}#serviceOrderListPanel .waiting .so-kpi-icon{background:#f6eaff!important;color:#8d31e8!important}#serviceOrderListPanel .ready .so-kpi-icon{background:#e7f9f0!important;color:#069f68!important}
#serviceOrderListPanel .so-view{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;min-height:38px!important;padding:8px 12px!important;border:1px solid #f1c29f!important;border-radius:10px!important;background:#fff2e8!important;color:#b94904!important;font-weight:800!important;white-space:nowrap!important}
#serviceOrderListPanel .so-view svg{display:block!important;width:17px!important;height:17px!important;fill:none!important;stroke:currentColor!important;stroke-width:2!important;stroke-linecap:round!important;stroke-linejoin:round!important}
#serviceOrderListPanel .so-view:hover{background:#ffe6d2!important;border-color:#e49a62!important}
#serviceOrderListPanel .so-filter-chips button.active{background:#b94a05!important;color:#fff!important}
@media(max-width:1260px){.so-detail-head{grid-template-columns:minmax(280px,380px) minmax(200px,260px) minmax(320px,1fr)!important}}
@media(max-width:1180px){#serviceOrderListPanel .so-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:980px){.so-detail-head{grid-template-columns:1fr!important;padding-bottom:12px!important}.so-detail-head .so-status-top{grid-template-columns:auto minmax(180px,1fr)!important;padding:0 4px!important;justify-content:stretch!important}.so-detail-head .so-detail-actions{grid-column:1!important;justify-content:flex-start!important;flex-wrap:wrap!important}.so-detail-screen .so-detail-grid{grid-template-columns:1fr!important}}
@media(max-width:700px){#serviceOrderListPanel>.so-dashboard-head{align-items:flex-start!important;flex-direction:column!important;padding:18px!important}#serviceOrderListPanel>.so-dashboard-head .primary{width:100%!important}#serviceOrderListPanel .so-kpis{grid-template-columns:1fr!important}}

/* v6.14.99 — mantém o título do painel legível também no aplicativo instalado. */
.service-orders-v518 .so-dashboard .so-dashboard-head{
 position:relative!important;isolation:isolate!important;overflow:hidden!important;
 display:flex!important;align-items:center!important;justify-content:space-between!important;gap:18px!important;
 padding:22px 26px!important;border:0!important;border-radius:16px!important;
 background:linear-gradient(112deg,#a94305 0%,#ca5509 48%,#ed7e1b 100%)!important;
 color:#fff!important;box-shadow:0 7px 18px rgba(166,66,4,.17)!important
}
.service-orders-v518 .so-dashboard .so-dashboard-head>div>span,
.service-orders-v518 .so-dashboard .so-dashboard-head h2,
.service-orders-v518 .so-dashboard .so-dashboard-head p{color:#fff!important;text-shadow:0 1px 1px rgba(83,26,0,.18)!important}
.service-orders-v518 .so-dashboard .so-dashboard-head>div>span{color:#ffe3c9!important}
.service-orders-v518 .so-dashboard .so-dashboard-head .primary{
 min-height:44px!important;padding:0 20px!important;border:1px solid rgba(255,255,255,.72)!important;
 border-radius:11px!important;background:#fff!important;color:#a94305!important;font-weight:800!important;
 box-shadow:0 5px 13px rgba(91,27,0,.18)!important
}
@media(max-width:700px){.service-orders-v518 .so-dashboard .so-dashboard-head{align-items:flex-start!important;flex-direction:column!important;padding:18px!important}.service-orders-v518 .so-dashboard .so-dashboard-head .primary{width:100%!important}}

/* v6.14.102 — ação de atualização mais nítida e responsiva. */
.so-detail-head .so-status-top .so-status-submit{
 border:1px solid rgba(255,224,196,.9)!important;border-radius:10px!important;
 background:linear-gradient(180deg,#a94305 0%,#7b2900 100%)!important;color:#fff!important;
 font-weight:900!important;letter-spacing:.01em!important;
 box-shadow:0 4px 10px rgba(82,26,0,.34),inset 0 1px 0 rgba(255,255,255,.16)!important;
 transition:transform .16s ease,box-shadow .16s ease,background .16s ease!important;cursor:pointer!important
}
.so-detail-head .so-status-top .so-status-submit:hover{
 background:linear-gradient(180deg,#8d3300 0%,#5d1d00 100%)!important;
 transform:translateY(-2px)!important;box-shadow:0 7px 14px rgba(70,21,0,.42),inset 0 1px 0 rgba(255,255,255,.18)!important
}
.so-detail-head .so-status-top .so-status-submit:active{transform:translateY(0)!important;box-shadow:0 2px 5px rgba(70,21,0,.35)!important}
.so-detail-head .so-status-top .so-status-submit:focus-visible{outline:3px solid #fff3e6!important;outline-offset:2px!important}
@media(max-width:560px){.so-detail-head .so-status-top{grid-template-columns:1fr!important}.so-detail-head .so-status-top .so-status-note,.so-detail-head .so-status-top .so-status-submit{grid-column:1!important}}
@media print{.so-detail-screen .so-media-details,.so-detail-screen .so-gallery,.so-detail-screen [data-file-drop-shell]{display:none!important}}

/* Acabamento do cabeçalho do cartão de mídia. */
.so-detail-screen .so-media-details:not([open]){display:none!important}
.so-detail-screen .so-media-details[open]>summary{display:none!important}
.so-detail-screen .so-media-header-toggle{width:auto!important;min-width:max-content!important;max-width:none!important;flex:0 0 auto!important;white-space:nowrap!important;line-height:1!important}
.so-detail-screen .so-detail-box:has(>.so-media-details)>h3>span:nth-child(2){min-width:0!important;line-height:1.15!important}


/* Faixa inferior da prévia sem sobreposição. */
.so-detail-screen .so-file-picker.has-files{grid-template-columns:minmax(0,1fr) 58px 58px!important;grid-template-rows:auto auto auto!important;column-gap:7px!important;row-gap:2px!important}
.so-detail-screen .so-file-picker.has-files .so-file-preview{grid-column:1/-1!important;grid-row:1!important}
.so-detail-screen .so-file-picker.has-files .so-file-selection{grid-column:1!important;grid-row:2!important;align-self:end!important;padding-top:9px!important}
.so-detail-screen .so-file-picker.has-files .so-file-size{grid-column:1!important;grid-row:3!important;align-self:start!important;margin:0!important;padding-bottom:2px!important}
.so-detail-screen .so-file-picker.has-files .so-file-clear{grid-column:2!important;grid-row:2/4!important;align-self:center!important;width:58px!important;padding:4px 2px!important;font-size:10px!important}
.so-detail-screen .so-file-picker.has-files .so-file-add{grid-column:3!important;grid-row:2/4!important;align-self:center!important;width:58px!important;min-width:58px!important;padding:6px 4px!important;white-space:nowrap!important;font-size:11px!important}
@media(max-width:640px){.so-detail-screen .so-file-picker.has-files{grid-template-columns:minmax(0,1fr) 58px 58px!important}.so-detail-screen .so-file-picker.has-files .so-file-add{grid-column:3!important;grid-row:2/4!important;width:58px!important}}



/* v6.14.98 — anexos visuais e observação única da O.S. */
.so-detail-screen .so-media-box>h3 .so-section-icon{width:26px!important;height:26px!important;flex:0 0 26px!important;border-radius:8px!important;background:#fff0e4!important;color:#c65308!important}
.so-detail-screen .so-media-box>h3 .so-section-icon svg{width:17px!important;height:17px!important;stroke-width:2.15!important}
.so-detail-screen .so-gallery{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:9px!important;margin:0!important}
.so-detail-screen .so-gallery>button{display:block!important;position:relative!important;min-width:0!important;aspect-ratio:1/1!important;padding:0!important;overflow:hidden!important;border:1px solid #d7e0ea!important;border-radius:11px!important;background:#eef2f6!important}
.so-detail-screen .so-gallery>button img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important}
.so-detail-screen .so-gallery .so-video-thumb{display:grid!important;place-items:center!important;width:100%!important;height:100%!important;background:linear-gradient(135deg,#26364d,#101827)!important;color:#fff!important;font-size:25px!important}
.so-detail-screen .so-gallery>p{grid-column:1/-1!important;margin:8px 0!important;color:#6b778c!important}
.so-detail-screen .so-media-notes{margin-top:12px!important;padding:12px!important;border:1px solid #dbe4ee!important;border-radius:11px!important;background:#f8fafc!important}
.so-detail-screen .so-media-notes h4{margin:0 0 8px!important;color:#26364d!important;font-size:13px!important}
.so-detail-screen .so-media-notes p{margin:0!important;white-space:pre-wrap!important;color:#34445b!important;font-size:13px!important;line-height:1.45!important}
.so-detail-screen .so-media-notes-form{display:grid!important;gap:8px!important}
.so-detail-screen .so-media-notes-form textarea{display:block!important;width:100%!important;min-height:92px!important;resize:vertical!important;padding:10px!important;border:1px solid #ccd7e4!important;border-radius:9px!important;background:#fff!important;color:#17243b!important;font:inherit!important;line-height:1.4!important}
.so-detail-screen .so-media-notes-form button{justify-self:start!important;min-height:34px!important;padding:7px 11px!important;border-color:#efb98f!important;background:#fff7f0!important;color:#ad4708!important;font-size:12px!important;font-weight:800!important}
.so-detail-screen .so-media-notes-form .so-save-state{color:#087b4a!important;font-size:11px!important;font-weight:700!important}
@media(max-width:420px){.so-detail-screen .so-gallery{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
