/* JAGRO Chamados 1.3.1 — compartilhamento, histórico e ação ADM */
.j138-spinner{display:inline-block;width:15px;height:15px;min-width:15px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:j138spin .8s linear infinite;vertical-align:middle}
@keyframes j138spin{to{transform:rotate(360deg)}}
.j128-share.j138-share-busy{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;opacity:.85!important;cursor:wait!important;pointer-events:none!important}
.j138-share-overlay{position:fixed;inset:0;z-index:2147483000;background:#092f246b;backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;padding:16px;box-sizing:border-box;font-family:Inter,"Segoe UI",system-ui,sans-serif}
.j138-share-panel{width:min(100%,460px);max-height:calc(100dvh - 32px);overflow:auto;background:linear-gradient(150deg,#fff 55%,#f2fbf5);border:1px solid #cce6d7;border-radius:23px;padding:23px;box-shadow:0 24px 85px #032a2840;box-sizing:border-box;color:#214b36}
.j138-share-head{display:flex;align-items:center;gap:12px}
.j138-share-symbol{display:grid;place-items:center;flex:0 0 43px;height:43px;border-radius:14px;border:1px solid #b1ddc4;background:linear-gradient(135deg,#e5f8ec,#c8eed9);color:#0a8c5b}
.j138-share-symbol svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.j138-share-head small{font-size:8px;letter-spacing:.11em;font-weight:700;color:#1d9769;display:block}
.j138-share-head h3{font-size:20px!important;line-height:1.25!important;font-weight:700!important;letter-spacing:-.45px!important;color:#164a32!important;margin:5px 0 0!important}
.j138-share-preview{display:flex;gap:8px;margin:20px 0 15px;padding:10px;border:1px solid #e2eee5;border-radius:14px;background:#f8fcf9;overflow:hidden}
.j138-share-preview img{width:calc((100% - 16px)/3);max-width:112px;height:86px;object-fit:contain;background:#fff;border:1px solid #dcebe1;border-radius:9px;box-sizing:border-box}
.j138-share-panel>p{font-size:13px!important;line-height:1.6!important;color:#587263!important;margin:0 0 10px!important}
.j138-share-status{border-left:3px solid #5cbd8b;border-radius:0 7px 7px 0;background:#ebf7ef;padding:9px 11px;color:#659078;font-size:10px;line-height:1.5}
.j138-share-actions{display:grid;grid-template-columns:1fr 1.25fr;gap:9px;margin-top:20px}
.j138-share-actions button{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:45px;padding:11px;border-radius:12px;font-family:inherit;font-size:12px;font-weight:650;cursor:pointer;box-sizing:border-box;line-height:1.4}
.j138-share-cancel{background:#fff;border:1px solid #d5e8dc;color:#5a806a}
.j138-share-send{background:linear-gradient(115deg,#065a3c,#0aa570);border:1px solid #0a925f;color:#fff;box-shadow:0 3px 10px #087c4b1a,inset 0 1px #ffffff30}
.j138-share-actions button:disabled{opacity:.65;cursor:wait}
.j138-share-actions button:focus-visible{outline:3px solid #36b77e55;outline-offset:2px}
#managerCallsModule#managerCallsModule .j138-delete-ticket,#historyModal#historyModal .request-admin-delete-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;padding:8px 11px!important;min-height:34px!important;border:1px solid #f0d5d0!important;border-radius:10px!important;background:linear-gradient(120deg,#fffaf9,#fff0ec)!important;color:#b35749!important;font-family:inherit!important;font-size:11px!important;font-weight:600!important;cursor:pointer}
.j138-delete-ticket svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.j138-delete-ticket:disabled{opacity:.6;cursor:wait}
#historyModal#historyModal{padding:16px!important;overflow:hidden!important;background:#103c2b66!important;backdrop-filter:blur(5px);font-family:Inter,"Segoe UI",system-ui,sans-serif!important;box-sizing:border-box!important}
#historyModal#historyModal>.modal-card{width:min(1300px,100%)!important;max-width:100%!important;max-height:calc(100dvh - 32px)!important;overflow-y:auto!important;overflow-x:hidden!important;border:1px solid #d5e9de!important;border-radius:22px!important;padding:22px!important;background:#fff!important;box-shadow:0 24px 90px #0a322a33!important;box-sizing:border-box!important;scrollbar-width:thin;scrollbar-color:#bddbc9 #f7fbf8}
#historyModal#historyModal .modal-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:12px!important;margin:0 0 19px!important;padding:0 0 16px!important;border-bottom:1px solid #e8f1eb!important;background:#fff!important}
#historyModal#historyModal .j138-eyebrow{display:block;color:#16956a!important;font-size:9px!important;font-weight:700!important;letter-spacing:.1em!important}
#historyModal#historyModal .modal-head h2{font-size:23px!important;font-weight:700!important;letter-spacing:-.6px!important;line-height:1.25!important;color:#174a33!important;margin:5px 0!important}
#historyModal#historyModal .muted{font-size:11px!important;line-height:1.5!important;color:#7c8e80!important}
#historyModal#historyModal .closebtn{width:35px!important;height:35px!important;min-width:35px!important;min-height:35px!important;display:grid!important;place-items:center!important;padding:0!important;border:1px solid #d9e9df!important;border-radius:11px!important;background:#f2f8f4!important;color:#52745f!important;font-size:22px!important;cursor:pointer}
#historyModal#historyModal .filters-grid{display:grid!important;grid-template-columns:minmax(145px,1fr) minmax(145px,1fr) minmax(185px,1.5fr) minmax(135px,1fr) minmax(145px,1fr)!important;gap:11px!important;margin:0!important;padding:14px!important;background:linear-gradient(120deg,#f8fcfa,#eef8f2)!important;border:1px solid #dfeee4!important;border-radius:15px!important;align-items:start!important}
#historyModal#historyModal .filters-grid>div{min-width:0!important}
#historyModal#historyModal .filters-grid label{display:block!important;font-size:10px!important;font-weight:650!important;line-height:1.4!important;color:#64816e!important;margin:0 0 6px!important;letter-spacing:0!important}
#historyModal#historyModal .j138-native-filter,#historyModal#historyModal .jagro-select-trigger[data-jagro-for="historyCollaborator"]{display:none!important}
#historyModal#historyModal .j138-filter-trigger{display:flex!important;align-items:center!important;gap:8px!important;width:100%!important;min-width:0!important;min-height:44px!important;margin:0!important;padding:10px 11px!important;border:1px solid #d1e5d8!important;border-radius:10px!important;background:linear-gradient(115deg,#fff,#f7fcf9)!important;color:#2e5e41!important;font-family:inherit!important;font-size:12px!important;font-weight:550!important;line-height:1.45!important;text-align:left!important;cursor:pointer;box-sizing:border-box!important}
#historyModal#historyModal .j138-filter-value{flex:1;min-width:0;overflow-wrap:anywhere}
#historyModal#historyModal .j138-filter-icon{display:flex;flex:0 0 16px;color:#60a27d}
#historyModal#historyModal .j138-filter-icon svg{width:16px;height:16px}
#historyModal#historyModal .j138-filter-chevron{color:#8eac99;font-size:13px}
#historyModal#historyModal .filters-actions{display:flex!important;justify-content:flex-end!important;gap:8px!important;margin:12px 0!important;grid-template-columns:none!important}
#historyModal#historyModal .filters-actions button{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;min-height:40px!important;width:auto!important;padding:10px 15px!important;border-radius:11px!important;font-family:inherit!important;font-size:11px!important;font-weight:600!important;line-height:1.4!important;cursor:pointer}
#historyModal#historyModal .filters-actions .secondary{border:1px solid #d7e8dd!important;background:#f7fbf8!important;color:#5c7c67!important}
#historyModal#historyModal .filters-actions .primary{border:1px solid #0b8f61!important;background:linear-gradient(115deg,#075d3f,#0b9d6d)!important;color:#fff!important;box-shadow:0 4px 12px #0b7f4518!important}
#historyModal#historyModal .j138-button-icon{display:flex!important}
#historyModal#historyModal .j138-button-icon svg{width:16px;height:16px}
#historyModal#historyModal .history-summary{font-size:11px!important;line-height:1.4!important;font-weight:550!important;color:#43815f!important;border:1px solid #dcece1!important;background:linear-gradient(110deg,#f4fbf6,#e7f5ec)!important;border-radius:10px!important;padding:10px 12px!important;margin:0 0 12px!important}
#historyModal#historyModal .history-list{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important;overflow:visible!important;max-height:none!important;padding:0!important}
#historyModal#historyModal .manager-request-wrap{border:1px solid #dcebe1!important;border-radius:15px!important;background:#fff!important;margin:0!important;overflow:hidden!important;min-width:0!important}
#historyModal#historyModal .request-card{width:100%!important;min-width:0!important;margin:0!important;box-shadow:none!important}
#historyModal#historyModal .manager-request-actions{display:flex!important;justify-content:flex-end!important;gap:7px!important;padding:0 13px 12px!important}
#historyModal#historyModal .record-action-edit{border:1px solid #d6e9dd!important;background:#eef8f2!important;color:#47815f!important;border-radius:9px!important;padding:7px 10px!important}
#historyModal#historyModal button:focus-visible,.j138-history-picker button:focus-visible,.j138-history-picker input:focus-visible{outline:3px solid #2bb87950!important;outline-offset:2px!important}
.j138-history-picker{position:fixed;inset:0;z-index:2147482900;display:flex;align-items:center;justify-content:center;padding:16px;background:#0e302660;backdrop-filter:blur(4px);font-family:Inter,"Segoe UI",system-ui,sans-serif;box-sizing:border-box}
.j138-picker-panel{width:min(100%,510px);max-height:calc(100dvh - 32px);display:flex;flex-direction:column;overflow:hidden;border:1px solid #d4e8dc;border-radius:21px;background:#fff;box-shadow:0 24px 90px #052b2233;box-sizing:border-box}
.j138-picker-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:19px 19px 15px;background:linear-gradient(120deg,#fff,#ecf9f0);border-bottom:1px solid #e2efe6}
.j138-picker-head small{font-size:8px;font-weight:700;letter-spacing:.13em;color:#1b9b69}
.j138-picker-head h3{font-size:21px!important;font-weight:700!important;letter-spacing:-.4px!important;line-height:1.3!important;color:#184d35!important;margin:5px 0 0!important}
.j138-picker-close{display:grid;place-items:center;width:33px;min-width:33px;height:33px;border:1px solid #d6e9dd;border-radius:10px;background:#fff9;color:#60816b;font-size:22px;cursor:pointer}
.j138-picker-search{margin:13px 15px!important;padding:11px 13px!important;width:calc(100% - 30px)!important;min-height:44px!important;border:1px solid #d3e8db!important;border-radius:11px!important;background:#f6fbf8!important;color:#31583f!important;font-size:16px!important;line-height:1.4!important;box-sizing:border-box!important;box-shadow:none!important;flex-shrink:0}
.j138-picker-options{display:grid;align-content:start;grid-auto-rows:min-content;gap:7px;padding:0 15px 15px;overflow-y:auto;max-height:55dvh;scrollbar-width:thin;scrollbar-color:#bedbc9 #f8fcf9}
.j138-picker-option{display:flex;align-items:center;gap:11px;min-height:53px;width:100%;padding:9px 11px;margin:0!important;border:1px solid #e0ebe3;border-radius:11px;background:#fff;color:#3c654c;font-size:12px;font-weight:550;text-align:left;font-family:inherit;box-sizing:border-box;cursor:pointer}
.j138-picker-option>span:nth-child(2){flex:1;min-width:0;overflow-wrap:anywhere}
.j138-picker-option[aria-pressed=true]{border-color:#93cfa9;background:linear-gradient(125deg,#edf9f1,#dbf2e3)}
.j138-option-symbol{width:29px;height:29px;flex:0 0 29px;display:grid;place-items:center;border:1px solid #deeee3;background:#eef8f1;color:#469c6a;border-radius:9px}
.j138-option-symbol svg{width:17px;height:17px}
.j138-option-check{width:18px;height:18px;flex:0 0 18px;border-radius:50%;border:1px solid #cfdfd4;display:grid;place-items:center;font-size:11px;color:#fff}
.j138-picker-option[aria-pressed=true] .j138-option-check{background:linear-gradient(135deg,#087a50,#16ad74);border-color:#189d68}
.j138-picker-empty{padding:20px;font-size:12px!important;color:#7e9385!important;text-align:center}
.j138-calendar-panel{width:min(100%,365px)}
.j138-calendar-nav{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:15px 17px 10px}
.j138-calendar-nav strong{font-size:13px;line-height:1.4;color:#335d40;font-weight:650;text-transform:capitalize}
.j138-calendar-nav button{width:31px;height:31px;border:1px solid #d7e9de;border-radius:9px;color:#4e8866;background:#f4faf6;font-size:22px;cursor:pointer}
.j138-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;padding:0 17px 15px}
.j138-calendar-grid>span{text-align:center;font-size:8px;color:#829989;padding:5px 0;font-weight:650}
.j138-calendar-grid button{min-width:0;height:34px;border:1px solid transparent;border-radius:9px;background:#f7fbf8;color:#456f52;font-size:12px;font-family:inherit;cursor:pointer}
.j138-calendar-grid button.is-today{border-color:#a5d7b6}
.j138-calendar-grid button[aria-pressed=true]{background:linear-gradient(135deg,#096442,#14ad73);color:#fff;box-shadow:0 3px 7px #11774722}
.j138-calendar-grid button:disabled{opacity:.4;cursor:not-allowed}
.j138-calendar-actions{display:flex;justify-content:space-between;gap:10px;padding:0 17px 17px}
.j138-calendar-actions button{padding:8px 13px;border:1px solid #d4e8db;border-radius:9px;background:#f0f9f3;color:#37764c;font-size:11px;font-weight:600;cursor:pointer}
@media(max-width:1100px){#historyModal#historyModal .filters-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}#historyModal#historyModal .filters-grid>div:nth-child(3){grid-column:1/-1!important}}
@media(max-width:600px){
#historyModal#historyModal{padding:8px!important}
#historyModal#historyModal>.modal-card{padding:15px!important;border-radius:17px!important;max-height:calc(100dvh - 16px)!important}
#historyModal#historyModal .modal-head h2{font-size:20px!important}
#historyModal#historyModal .filters-grid{padding:11px!important;gap:10px!important}
#historyModal#historyModal .j138-filter-trigger{padding:10px 8px!important;font-size:11px!important;gap:5px!important;min-height:44px!important}
#historyModal#historyModal .j138-filter-icon{flex-basis:14px}
#historyModal#historyModal .j138-filter-icon svg{width:14px;height:14px}
#historyModal#historyModal .filters-actions button{flex:1;padding:10px 8px!important;font-size:10px!important}
.j138-history-picker{padding:8px;align-items:flex-end}
.j138-picker-panel{max-height:calc(100dvh - 16px);border-radius:19px 19px 14px 14px}
.j138-share-panel{padding:19px;border-radius:20px}
.j138-share-head h3{font-size:18px!important}
.j138-share-panel>p{font-size:12px!important}
}
@media(prefers-reduced-motion:reduce){.j138-spinner{animation:none;border-right-color:currentColor;opacity:.65}}

/* Cards do Histórico no padrão dos Meus chamados */
#historyModal#historyModal .j126-ticket{padding:16px!important;border:1px solid #dcebe1!important;border-radius:15px!important;background:#fff!important;margin:10px 0!important;box-shadow:0 3px 12px #174d3405!important}
#historyModal#historyModal .j126-main{display:flex!important;gap:13px!important;align-items:flex-start!important}
#historyModal#historyModal .j126-icon{background:linear-gradient(140deg,#f1f9f4,#def2e5)!important;border:1px solid #d6eadc!important;border-radius:12px!important}
#historyModal#historyModal .j129-equipment-photo{object-fit:contain!important;background:#fff!important}
#historyModal#historyModal .j126-copy{flex:1!important;min-width:0!important}
#historyModal#historyModal .j126-heading{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:6px 9px!important}
#historyModal#historyModal .j126-heading strong{font-size:15px!important;font-weight:700!important;letter-spacing:-.25px!important;color:#164d34!important}
#historyModal#historyModal .j126-heading small{font-size:9px!important;letter-spacing:.04em!important;color:#8a9a8e!important}
#historyModal#historyModal .j126-description{font-size:13px!important;line-height:1.5!important;margin:6px 0!important;color:#486451!important;overflow-wrap:anywhere}
#historyModal#historyModal .j126-details{gap:5px 9px!important;font-size:10px!important;line-height:1.5!important;color:#738477!important}
#historyModal#historyModal .j126-badges{display:flex!important;flex-wrap:wrap!important;gap:5px!important;justify-content:flex-end}
#historyModal#historyModal .j126-bottom{display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;font-size:10px!important;color:#839186!important;border-top:1px solid #edf3ef!important;padding-top:10px!important;margin-top:12px!important}
#historyModal#historyModal .j126-photo{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;padding:8px 10px!important;border:1px solid #d6e9dd!important;border-radius:9px!important;background:linear-gradient(120deg,#f5fbf7,#e8f6ed)!important;color:#19764c!important;font-size:11px!important;font-weight:600!important}
#historyModal#historyModal .j126-progress{margin-top:12px!important;border:1px solid #e0ece4!important;border-radius:12px!important;overflow:hidden!important;background:#fcfefc!important}
#historyModal#historyModal .j126-progress summary{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:8px!important;padding:11px 13px!important;list-style:none!important;background:linear-gradient(110deg,#f4faf6,#eaf6ee)!important;color:#2f6d49!important;font-size:11px!important;font-weight:650!important;cursor:pointer}
#historyModal#historyModal .j126-progress summary::-webkit-details-marker{display:none}
#historyModal#historyModal .j126-progress[open] summary>span{transform:rotate(180deg)}
#historyModal#historyModal .j126-timeline{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:8px!important;padding:14px 10px!important;margin:0!important}
#historyModal#historyModal .j126-timeline>div{padding:8px 2px!important;background:#f5f8f6!important;border:1px solid #e7eee8!important;border-radius:10px!important}
#historyModal#historyModal .j126-timeline>div.is-done{background:linear-gradient(145deg,#edf9f1,#ddf2e5)!important;border-color:#c8e7d3!important}
#historyModal#historyModal .j126-timeline span{width:29px!important;height:29px!important;border-radius:9px!important;background:#e8efea!important;color:#7d9183!important}
#historyModal#historyModal .j126-timeline .is-done span{background:linear-gradient(135deg,#075f3d,#14a670)!important;color:white!important}
#historyModal#historyModal .j126-timeline small{font-size:9px!important;font-weight:550!important;color:#6b8070!important}
#historyModal#historyModal .j126-progress>p{font-size:10px!important;margin:0!important;padding:0 13px 12px!important;color:#7b8b7e!important}
#historyModal#historyModal .jcp-icon{display:inline-block!important;width:18px!important;height:18px!important;min-width:18px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.7!important;stroke-linecap:round!important;stroke-linejoin:round!important;vertical-align:middle!important}
#historyModal#historyModal .j126-timeline small{letter-spacing:0!important;word-break:normal!important;overflow-wrap:normal!important;hyphens:none!important}
@media(max-width:700px){#historyModal#historyModal .j126-main{flex-wrap:wrap!important}#historyModal#historyModal .j126-copy{flex:1 1 calc(100% - 70px)!important}#historyModal#historyModal .j126-badges{width:100%;justify-content:flex-start!important}#historyModal#historyModal .j126-timeline{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:5px!important;padding:9px!important}#historyModal#historyModal .j126-ticket{padding:12px!important}}
/* Sobreposição acima do Histórico e dos diálogos globais legados. */
.j138-history-picker,.j138-share-overlay{z-index:2147483647!important}
#j137ShareDialog#j137ShareDialog *{box-sizing:border-box;min-width:0;max-width:100%}
#j137ShareDialog#j137ShareDialog .j138-share-panel>p{width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important}
#historyModal#historyModal .filters-actions button{flex:0 0 auto!important;height:40px!important;min-height:40px!important;margin:0!important;align-self:center!important}
#historyModal#historyModal .manager-request-actions>button{flex:0 0 auto!important;width:auto!important;min-width:0!important;height:34px!important;min-height:34px!important;margin:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;font-size:11px!important}
#historyModal#historyModal .j138-history-action svg{width:15px!important;height:15px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.7!important;stroke-linecap:round!important;stroke-linejoin:round!important}
#historyModal#historyModal #historyRequests .j126-ticket{margin:0!important;border:0!important;border-radius:0!important}
@media(max-width:600px){#historyModal#historyModal .filters-actions button{flex:1!important;height:44px!important;min-height:44px!important}}
/* 1.3.2 — somente contenção do botão de opções no cabeçalho mobile de Chamados. */
@media screen and (max-width:767px){
#managerCallsModule#managerCallsModule .calls-topbar{display:grid!important;grid-template-columns:32px minmax(0,1fr) 69px!important;align-items:center!important;gap:8px!important;box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;overflow:visible!important}
#managerCallsModule#managerCallsModule .calls-topbar>div:nth-child(2){width:auto!important;min-width:0!important;max-width:100%!important;overflow-wrap:anywhere!important}
#managerCallsModule#managerCallsModule .calls-topbar>.manager-actions{grid-column:3!important;display:flex!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:flex-end!important;gap:5px!important;box-sizing:border-box!important;width:69px!important;min-width:0!important;max-width:69px!important;margin:0!important;padding:0!important;position:relative!important;inset:auto!important;transform:none!important;overflow:visible!important}
#managerCallsModule#managerCallsModule .calls-topbar>.module-back-btn,#managerCallsModule#managerCallsModule .calls-topbar>.manager-actions>button{box-sizing:border-box!important;flex:0 0 32px!important;width:32px!important;min-width:32px!important;max-width:32px!important;height:32px!important;min-height:32px!important;margin:0!important;padding:6px!important;position:relative!important;inset:auto!important;transform:none!important}
#managerCallsModule#managerCallsModule .calls-topbar .module-dots svg{display:block!important;flex:none!important;width:18px!important;height:18px!important;overflow:visible!important}
#managerCallsModule#managerCallsModule #callsModuleMenu{right:0!important;left:auto!important;width:min(260px,calc(100vw - 48px))!important;min-width:0!important;max-width:calc(100vw - 48px)!important;box-sizing:border-box!important}
}
