.content:has(.ot-workspace){padding:12px;overflow:hidden;min-width:0}
.content:has(.ot-workspace)>header{display:none!important}
.ot-workspace{--wine:#710909;display:flex;flex-direction:column;width:100%;min-height:240px;max-height:100dvh;color:#18202c;font-size:14px}
.ot-workspace *{box-sizing:border-box}
.ot-workspace button,.ot-workspace input,.ot-workspace a{font:inherit}
.ot-workspace button{cursor:pointer}
.ot-title{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 4px 10px;flex:none}
.ot-title h2{font-size:23px;line-height:1.2;margin:0;color:#20242a}
.ot-workspace .ot-primary{background:var(--wine);border:0;color:#fff;border-radius:9px;padding:11px 14px;font-weight:700;min-height:42px}
.ot-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-bottom:1px solid #d9dfe5;flex:none;background:#faf9f8}
.ot-tabs button{border:0;border-bottom:3px solid transparent;color:#596577;background:transparent;min-height:44px;padding:10px 4px;font-weight:650;border-radius:0}
.ot-tabs button[aria-selected=true]{color:var(--wine);border-bottom-color:var(--wine)}
.ot-body{flex:1;min-height:0;overflow:auto;overscroll-behavior-y:contain;padding:12px 3px 16px;scrollbar-gutter:stable;outline-offset:-2px}
.ot-body h3{font-size:17px;margin:0 0 12px;font-weight:750;line-height:1.3}
.ot-origin{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid #dce0e5;border-radius:8px;overflow:hidden;margin:0 0 14px}
.ot-origin button{min-height:38px;padding:6px;border:0;border-right:1px solid #dce0e5;background:#f4f5f6;color:#596373;font-weight:600;border-radius:0}
.ot-origin button:last-child{border-right:0}
.ot-origin button[aria-pressed=true]{background:var(--wine);color:white}
.ot-stage-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.ot-stat{position:relative;text-align:left;background:#fff;border:1px solid #dfe3e8;border-radius:10px;padding:11px 12px;min-height:76px;display:flex;flex-direction:column;gap:7px;color:#536072}
.ot-stat span{font-size:12px;font-weight:650;padding-right:5px;line-height:1.2}
.ot-stat b{font-size:23px;line-height:1.1;color:#18202c}
.ot-stat i{position:absolute;right:12px;bottom:12px;font-style:normal;color:#969fa9}
.ot-color-COMPRA i,.ot-color-COMPRA svg{color:#a87a19}
.ot-color-MATERIAL i{color:#c58115}
.ot-color-INSTALACAO i{color:#1966c3}
.ot-color-VISTORIA i{color:#8544ba}
.ot-color-FINALIZADO i{color:#19834b}
.ot-stat:hover,.ot-stat:focus-visible{border-color:var(--wine);background:#fffafa}
.ot-deadline-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;border-top:1px solid #e0e3e7;margin-top:12px;padding-top:12px}
.ot-deadline{border:1px solid transparent;border-radius:9px;padding:10px 8px;text-align:left;display:flex;flex-direction:column;gap:6px;min-height:70px}
.ot-deadline span{font-size:11px;font-weight:650;line-height:1.25}
.ot-deadline b{font-size:22px}
.ot-due-VENCIDO{color:#ab2025;background:#fff0f0}
.ot-due-PROXIMO{color:#92610a;background:#fff8df}
.ot-due-SEM_DATA,.ot-due-INVALIDA{color:#7944ae;background:#f3ebfd}
.ot-due-PRAZO,.ot-due-CONCLUIDO{color:#15804b;background:#ecf8ef}
.ot-hint{color:#87909c;font-size:11px;text-align:center;margin:14px 0 0}
.ot-search{display:flex;gap:8px;margin:0 0 10px}
.ot-search input{min-width:0;flex:1;border:1px solid #d9dfe5;background:#fff;border-radius:9px;padding:10px 11px;height:42px;font-size:16px}
.ot-search button,.ot-filters>button{border:1px solid #d9dfe5;background:#fff;color:#4c596b;border-radius:9px;padding:8px 10px;min-height:42px;white-space:nowrap}
.ot-filters{border:1px solid #e0e3e7;border-radius:10px;background:#fff;padding:12px;margin-bottom:10px;display:grid;gap:12px}
.ot-filters label{font-size:13px;color:#526071;min-width:0}
.ot-filters .ss-control{min-height:42px}
.ot-filters .order-period-filter{padding:10px;min-width:0}
.ot-filters .order-period-title{gap:8px;flex-wrap:wrap}
.ot-filters .order-period-title b{font-size:13px}
.ot-filters .order-period-months{gap:4px}
.ot-filters .order-period-months button{font-size:12px;min-height:34px;padding:5px}
.ot-filters .order-period-range{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px}
.ot-filters .order-period-range>button{display:none}
.ot-filters .order-period-range label{border:0;padding:0}
.ot-filters input[type=date]{min-width:0;width:100%;font-size:13px;padding:6px;height:38px}
.ot-filters .order-period-title input{width:76px;height:36px;font-size:16px;padding:4px}
.ot-applied:empty{display:none}
.ot-applied{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 8px}
.ot-applied button{border:0;background:#f4e4e6;color:var(--wine);padding:6px 9px;border-radius:7px;font-size:12px}
.ot-count{font-size:12px;color:#687385;margin:8px 0}
.ot-order-list{display:grid;gap:10px}
.ot-order{position:relative;background:#fff;border:1px solid #dce2e8;border-radius:10px;padding:12px;min-width:0}
.ot-open-order{display:flex;flex-direction:column;align-items:flex-start;gap:6px;width:100%;border:0;background:transparent;text-align:left;padding:0 67px 0 0;color:#18202c;border-radius:0}
.ot-open-order>small{font-size:11px;line-height:1.3;color:#667487;overflow-wrap:anywhere}
.ot-open-order>strong{font-size:15px;line-height:1.25;overflow-wrap:anywhere;font-weight:750}
.ot-open-order>.order-row-value{position:static!important;display:block!important;font-size:18px!important;line-height:1.25;white-space:normal;color:#141820!important;margin:2px 0 0!important;padding:0!important}
.ot-stage{display:inline-flex;align-items:center;gap:5px;font-size:11px;border-radius:6px;color:#7c2023;background:#f6e9eb;padding:4px 7px;max-width:100%;white-space:normal;line-height:1.2}
.ot-stage svg{flex:none}
.ot-row-actions{position:absolute;right:9px;top:20px;display:flex;align-items:center;gap:4px}
.ot-whatsapp{display:flex;align-items:center;justify-content:center;width:36px;height:38px;border:1px solid #36ae51;border-radius:8px;color:#16a33c;text-decoration:none}
.ot-whatsapp svg{width:23px;height:23px}
.ot-chevron{width:24px;min-height:40px;border:0;background:transparent;color:#718094;font-size:26px!important;padding:0}
.ot-row-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;margin-top:9px;border-radius:6px;padding:5px 7px}
.ot-row-footer button{background:#fff;border:1px solid currentColor;color:inherit;font-size:11px;border-radius:6px;padding:7px 8px;min-height:32px;font-weight:600}
.ot-source{display:block;font-size:10px;color:#8591a1;margin-top:5px}
.ot-deadline-tabs{display:flex;gap:7px;overflow-x:auto;padding-bottom:7px;margin-bottom:10px}
.ot-deadline-tabs button{display:flex;flex-direction:column;gap:5px;align-items:center;flex:1 0 82px;border:1px solid transparent;border-radius:9px;min-height:64px;padding:8px 6px;font-size:11px;line-height:1.2}
.ot-deadline-tabs button b{font-size:17px}
.ot-deadline-tabs button[aria-pressed=true]{border-color:currentColor;box-shadow:inset 0 0 0 1px currentColor}
.ot-note{background:#f3ebfd;color:#7944ae;font-size:12px;padding:12px;border-radius:9px;margin:12px 0 0}
.ot-empty{padding:25px 12px;text-align:center;color:#768291}
@media(min-width:900px){.ot-stage-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.ot-order-list{grid-template-columns:repeat(3,minmax(0,1fr))}.ot-stat{min-height:100px}.ot-stat span{font-size:14px}.ot-stat b{font-size:30px}.ot-deadline{min-height:80px}.ot-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.ot-filters .ot-origin,.ot-filters .order-period-filter{grid-column:1/-1}}
@media(max-width:400px){.content:has(.ot-workspace){padding:8px}.ot-stat{padding:10px;min-height:70px}.ot-stage-grid{gap:7px}.ot-stat span{font-size:11px}.ot-open-order>strong{font-size:14px}.ot-deadline-summary{gap:5px}.ot-title h2{font-size:22px}}
.mobile-shortcut-bar:has(button[aria-current=page]:nth-child(4)) button[aria-current=page]{background:#f9eeee!important;color:#710909!important}

.ot-deadline-summary:has(>button:nth-child(4)){grid-template-columns:repeat(4,minmax(0,1fr))}
.ot-deadline-summary:has(>button:nth-child(4)) .ot-deadline{padding:9px 6px}
