/* Greenjob Gestão — padrão mestre. Generated by scripts/build-ui-system.cjs */

/* action-icons.css */
:root{--gj-action-icons-ready:1}
/* Action icons are independent of module colors and work in embedded workspaces. */
button.gj-action-icon{position:relative;display:inline-flex;align-items:center!important;justify-content:center!important;vertical-align:middle;flex:0 0 auto!important;width:36px!important;min-width:36px!important;max-width:36px!important;height:36px!important;min-height:36px!important;padding:8px!important;margin:2px 4px 2px 0!important;border-radius:8px!important;gap:0!important;line-height:1!important;box-sizing:border-box!important;overflow:visible!important}
button.gj-action-icon>.gj-action-glyph,button.gj-action-inline>.gj-action-glyph{display:block!important;width:18px!important;min-width:18px!important;height:18px!important;flex:none!important;margin:0!important;color:inherit}
button.gj-action-icon>.gj-action-label{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
button.gj-action-icon[hidden],button.gj-action-inline[hidden]{display:none!important}
button.gj-action-inline{display:inline-flex;align-items:center;justify-content:center;gap:7px}
button.gj-action-inline>.gj-action-label{min-width:0}
button.gj-action-icon>.gj-action-glyph,button.gj-action-inline>.gj-action-glyph,button.gj-action-icon>.gj-action-label,button.gj-action-inline>.gj-action-label{pointer-events:none}
button.gj-action-icon::before,button.gj-action-inline:has(>.gj-action-glyph)::before{content:none!important}
button.gj-action-danger:not(.primary){background:#fff7f4!important;color:#a73428!important;border-color:#e9c9c0!important}
button.gj-action-icon:hover:not(:disabled){box-shadow:0 2px 6px #20382d12;background:#edf6d9;color:#255028;border-color:#adc781}
button.gj-action-icon.primary:hover:not(:disabled){background:#065d35!important;color:#fff!important}
button.gj-action-danger:hover:not(:disabled){background:#ffeae3!important;color:#9d2a1c!important;border-color:#d99f90!important}
button.gj-action-icon:focus-visible,button.gj-action-inline:focus-visible{outline:2px solid #557c26!important;outline-offset:3px!important}
td.gj-action-cell{white-space:nowrap!important;min-width:96px}td.gj-action-cell:has(>button.gj-action-icon:nth-of-type(3)){min-width:140px}
.gj-action-tooltip{position:fixed!important;inset:auto;margin:0;z-index:2147483646!important;display:block;max-width:min(320px,calc(100vw - 16px));padding:9px 12px;background:#20382d;color:#fff;border:1px solid #405c49;border-radius:8px;box-shadow:0 5px 20px #142a2326;font:500 12px/1.5 Inter,"Segoe UI",Arial,sans-serif;text-align:left;white-space:normal;overflow-wrap:anywhere;pointer-events:none}
.gj-action-tooltip[hidden]{display:none!important}
@media(max-width:800px),(pointer:coarse){button.gj-action-icon{width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;padding:11px!important;margin-right:5px!important}button.gj-action-icon>.gj-action-glyph{width:20px!important;height:20px!important;min-width:20px!important}td.gj-action-cell:has(>button.gj-action-icon:nth-of-type(3)){min-width:180px}.gj-action-tooltip{font-size:13px}}
@media print{button.gj-action-icon,button.gj-action-inline,.gj-action-tooltip{display:none!important}}
.certificate-kinds button.gj-action-icon{display:inline-flex!important;vertical-align:middle}
.certificate-kinds button.gj-action-icon[hidden]{display:none!important}

.gj-action-group{display:flex;align-items:center;gap:6px;flex-wrap:wrap}

/* Semantic colors apply to actions, not tab selection, navigation or response states. */
button[data-gj-action-tone]:not([role=tab]):not([aria-pressed]):not([data-tab]):not(.gj-window-close){border:1px solid var(--gj-action-line,#ccd8d0)!important;background:var(--gj-action-bg,#f2f5f3)!important;color:var(--gj-action-ink,#4b6157)!important}
button[data-gj-action-tone=view]{--gj-action-bg:#edf5ff;--gj-action-ink:#175ea8;--gj-action-line:#b7d2ee}
button[data-gj-action-tone=success]{--gj-action-bg:#e9f7ee;--gj-action-ink:#18713e;--gj-action-line:#a5d4b5}
button[data-gj-action-tone=confirmation]{--gj-action-bg:#fff3df;--gj-action-ink:#9b580b;--gj-action-line:#e9c389}
button[data-gj-action-tone=danger]{--gj-action-bg:#fff0f0;--gj-action-ink:#b82b32;--gj-action-line:#e6b0b4}
button[data-gj-action-tone=secondary]{--gj-action-bg:#f1f4f3;--gj-action-ink:#53665e;--gj-action-line:#cbd6d0}
button[data-gj-action-tone]:disabled{opacity:.5;cursor:not-allowed}
button[data-gj-action-tone]:focus-visible{outline:3px solid #1683ca!important;outline-offset:2px}

/* Padrão único: ações compactas de 44px em todas as telas. */
button.gj-action-icon{width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;padding:10px!important;margin:0!important;border-radius:10px!important}
button.gj-action-icon>.gj-action-glyph{width:22px!important;min-width:22px!important;height:22px!important;stroke-width:1.8}
button[data-gj-action-tone=edit]{--gj-action-bg:#fff3df;--gj-action-ink:#9b580b;--gj-action-line:#e9c389}
.actions{align-items:center;gap:8px}

/* ui-standards.css */
/* Shared window rules, loaded after module styles. No business permissions are changed. */
.gj-standard-window{box-sizing:border-box;max-width:calc(100vw - 16px)!important;max-height:calc(100dvh - 20px)!important;overflow:auto;isolation:isolate}
.gj-standard-window>.gj-window-header{position:sticky!important;top:0!important;z-index:80!important;display:flex!important;align-items:center!important;gap:10px;min-height:58px;flex:none;box-sizing:border-box;background:#fff!important;border-bottom:1px solid #dbe6df;padding:10px 14px!important;margin:0!important;float:none!important}
.gj-window-header>h1,.gj-window-header>h2,.gj-window-header>h3{flex:1;min-width:0;margin:0!important;padding:0!important;overflow-wrap:anywhere;line-height:1.35}
.gj-window-header>.gj-window-close{order:1000;flex:0 0 42px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;position:static!important;float:none!important;margin:0 0 0 auto!important;width:42px!important;min-width:42px!important;max-width:42px!important;height:42px!important;min-height:42px!important;padding:0!important;border:1px solid #ccd9d1!important;border-radius:8px!important;background:#f4f7f5!important;color:#486255!important;font:26px/1 Arial,sans-serif!important;cursor:pointer}
.gj-window-close:hover{background:#e7eeea!important}.gj-window-close:focus-visible{outline:3px solid #1675ba!important;outline-offset:2px}
[data-gj-window-close-duplicate=true]{display:none!important}
/* A single viewport-bounded editor. Only the form body scrolls, actions stay visible. */
.os-editor.gj-standard-window{display:flex!important;flex-direction:column;overflow:hidden!important;padding:0!important}
.os-editor>.os-editor-hint{flex:none}
.os-editor .os-editor-form{display:flex!important;flex-direction:column!important;min-height:0!important;overflow:hidden!important;flex:1 1 auto;margin:0!important;padding:0!important}
.os-editor .gj-os-scroll{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;padding:12px 16px;scroll-padding-block:60px 24px}
.os-editor .gj-os-tabs{position:sticky!important;top:-12px!important;background:#f4f7f5;z-index:20;flex-shrink:0}
.os-editor .os-editor-footer{position:relative!important;bottom:auto!important;display:flex!important;align-items:center!important;justify-content:space-between!important;flex:0 0 auto!important;flex-wrap:wrap!important;gap:8px!important;border-top:1px solid #d6e3db!important;box-shadow:0 -4px 14px #143c2b0c;background:#fff!important;margin:0!important;padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px))!important;z-index:40!important;min-height:62px;box-sizing:border-box}
.os-editor-footer>.gj-os-actionbar{display:flex!important;align-items:center!important;gap:7px!important;flex:1 1 auto!important;width:auto!important;margin:0!important;border:0!important;padding:0!important;min-width:0}
.os-editor-footer>button{flex:0 0 auto!important}.os-editor-footer .os-editor-save{margin-left:auto!important}
.os-editor .os-editor-body>[data-os-group][aria-hidden=true]{display:none!important}
.os-editor [data-os-group=confirmation]{grid-column:1/-1}
.os-editor .appointment-embedded{position:static!important;width:100%!important;max-width:100%!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;overflow:visible!important;max-height:none!important}
.os-editor .appointment-embedded .appointment-dialog-head{position:static!important;z-index:auto;padding:6px 0!important;flex-wrap:wrap}
.os-editor [data-os-group=confirmation]>.os-editor-fields{display:block!important}
.confirmation-page .appointment-center-embedded{width:100%;max-width:100%;margin:0;border:0;padding:0;background:transparent;box-shadow:none;max-height:none;overflow:visible}
.confirmation-page .appointment-dialog-head{position:static;background:transparent}.confirmation-page>.filters{display:flex;flex-wrap:wrap;align-items:end;gap:12px}.confirmation-page .filters label{display:grid;gap:5px}
@media(max-width:680px){.gj-window-header>.gj-window-close{width:44px!important;height:44px!important;flex-basis:44px!important}.gj-window-header>h2,.gj-window-header>h3{font-size:18px!important}.os-editor .gj-os-scroll{padding:10px}.os-editor .os-editor-footer{padding:8px 10px calc(8px + env(safe-area-inset-bottom,0px))!important;gap:6px!important}.os-editor-footer>.gj-os-actionbar{gap:4px!important;flex:1 1 100%!important;flex-wrap:wrap!important}.os-editor .os-editor-footer button{min-height:42px!important}.os-editor-footer .job-delete-button{margin-right:0!important}}
@media print{.gj-window-close,.os-editor-footer,.gj-os-tabs{display:none!important}}
.desk-categories{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.desk-categories button{min-height:42px;border:1px solid #bcd2c5;background:#f1f7f3;color:#315e46;padding:9px 12px;border-radius:8px}.desk-categories button[aria-pressed=true]{background:#096b43;color:#fff;border-color:#096b43}
.os-editor .os-editor-footer .gj-os-action-view{background:#edf5ff!important;color:#175ea8!important;border-color:#b7d2ee!important}
.os-editor .os-editor-footer .gj-os-action-execute{background:#e9f7ee!important;color:#18713e!important;border-color:#a5d4b5!important}
.os-editor .os-editor-footer .gj-os-action-confirm{background:#fff3df!important;color:#9b580b!important;border-color:#e9c389!important}
.os-editor .os-editor-footer .gj-os-action-alert{background:#fff0f0!important;color:#b82b32!important;border-color:#e6b0b4!important}
@media(max-width:680px){.os-editor-footer>.gj-os-actionbar{flex:1 1 auto!important;width:auto!important}}
.gj-standard-window{min-width:0;overflow-x:hidden!important}
.gj-standard-window form,.gj-standard-window label,.gj-standard-window fieldset,.gj-standard-window .formgrid,.gj-standard-window .form-grid{min-width:0;max-width:100%;box-sizing:border-box}
.gj-standard-window p,.gj-standard-window label{overflow-wrap:anywhere}
.gj-standard-window input:not([type=checkbox]):not([type=radio]),.gj-standard-window textarea,.gj-standard-window select{min-width:0!important;max-width:100%!important;box-sizing:border-box}
.gj-standard-window .tablewrap{max-width:100%;overflow:auto}
.review-dialog [data-form-editor]{grid-template-columns:minmax(0,1fr)}
.review-dialog [data-form-editor]>.actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-width:0}
.review-dialog [data-form-editor]>.actions>select{flex:1 1 180px;width:auto}
@media(max-width:680px){.gj-standard-window input:not([type=checkbox]):not([type=radio]),.gj-standard-window textarea,.gj-standard-window select{font-size:16px!important}.gj-standard-window .formgrid,.gj-standard-window .form-grid{grid-template-columns:minmax(0,1fr)}.review-dialog [data-form-editor] .actions{flex-wrap:wrap}.gj-standard-window .gj-window-header{padding:10px!important}}
.workspace-context{display:flex!important;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 16px!important;border-bottom:1px solid #dce6df;background:#fff;min-width:0;max-width:100%;box-sizing:border-box}
.workspace-context>.workspace-back{display:inline-flex;align-items:center;flex:none;min-height:40px;padding:7px 11px;color:#175ea8;border:1px solid #b7d2ee;background:#edf5ff;border-radius:8px}
.workspace-context>nav{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0;font-size:13px}
.workspace-context nav a,.workspace-context nav button{display:inline-flex;align-items:center;min-height:36px;padding:5px 7px;color:#2a644a;text-decoration:none;border:1px solid transparent;border-radius:6px;background:transparent;font:inherit;overflow-wrap:anywhere}
.workspace-context nav a:hover,.workspace-context nav button:hover{background:#eaf4ee;border-color:#b7d2c0;text-decoration:underline}
.workspace-context [aria-current=page]{font-weight:750;color:#173f32}.module-navigation-dialog nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:12px}.module-navigation-dialog nav a{display:block;border:1px solid #cdded4;background:#f4f8f5;border-radius:8px;padding:12px;color:#20563d;text-decoration:none}.module-navigation-dialog nav a[aria-current=page]{background:#e5f4eb;border-color:#4d9d73;font-weight:700}
@media(max-width:680px){.workspace-context{padding:8px 10px!important;gap:6px}.workspace-context>nav{font-size:12px;gap:3px}.workspace-context nav a,.workspace-context nav button{padding:4px}.module-navigation-dialog nav{grid-template-columns:minmax(0,1fr)}}

.maintenance-order-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0}.maintenance-order-summary label{display:grid;gap:5px;font-size:12px;color:#637c70}.maintenance-order-summary output{color:#193f33;font-size:15px;font-weight:600}.maintenance-order-summary>p{grid-column:1/-1}.maintenance-order-actions{display:flex;flex-wrap:wrap;gap:8px;border-top:1px solid #d8e5dc;padding-top:14px}.maintenance-order-actions button{flex:0 1 auto}@media(max-width:540px){.maintenance-order-summary{grid-template-columns:1fr}.maintenance-order-actions button{flex:1 1 140px}}
.maintenance-flow-card{display:flex!important;flex-direction:column!important;gap:10px!important;padding:16px!important;border:1px solid #dbe5df!important;border-radius:16px!important;background:#fff!important;box-shadow:0 3px 12px #173c3108!important}.maintenance-flow-card .kanban-card-top{display:flex;justify-content:space-between;align-items:center;gap:10px}.maintenance-flow-card .kanban-card-top strong{font-size:16px;color:#246b55}.maintenance-flow-card h4{font-size:16px!important;line-height:1.4!important;margin:0!important;overflow-wrap:anywhere}.maintenance-flow-card>p{margin:0!important;font-size:13px;line-height:1.5;overflow-wrap:anywhere}.maintenance-flow-card .kanban-card-crew{padding-top:10px;border-top:1px solid #edf1ee;color:#6a7d73}.maintenance-flow-card .kanban-card-actions{display:flex!important;margin-top:auto!important;padding-top:10px!important}.maintenance-flow-card .kanban-card-actions>button{width:100%!important;min-height:42px!important;border-radius:10px!important}.maintenance-list>article{border:1px solid #dbe5df;border-radius:16px;padding:16px;background:white}.maintenance-list>article>button{margin-top:14px;min-height:42px;width:100%}.desk-card>h3>button{font:inherit;color:inherit;text-align:left;background:transparent;border:0;padding:0;width:100%}

/* video-ui-corrections.css */
/* Operational corrections observed in the mobile recordings. */
.gj-modal-active{overscroll-behavior:none}
.gj-modal-active #internalChatFloat,.gj-modal-active .internal-chat-fab,.gj-modal-active #chatFloatingButton{visibility:hidden!important}
[data-gj-window-close-duplicate=true]{display:none!important}
button.video-icon{width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;padding:10px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 44px!important;gap:0!important;line-height:1!important;margin:0!important;border:1px solid #cbd6d0!important;border-radius:10px!important;background:#f1f4f3!important;color:#53665e!important}
button.video-icon svg{width:22px!important;height:22px!important;flex:none;pointer-events:none}
button.video-icon[data-video-tone=view]{background:#edf5ff!important;border-color:#b7d2ee!important;color:#175ea8!important}button.video-icon[data-video-tone=success]{background:#e9f7ee!important;border-color:#a5d4b5!important;color:#18713e!important}button.video-icon[data-video-tone=danger]{background:#fff0f0!important;border-color:#e6b0b4!important;color:#b82b32!important}button.video-icon[data-video-tone=edit]{background:#fff3df!important;border-color:#e9c389!important;color:#9b580b!important}
.gj-order-tabs,.gj-os-tabs{display:flex!important;flex-wrap:nowrap!important;justify-content:space-between!important;gap:5px!important;overflow-x:auto!important;scrollbar-width:thin;padding:8px!important}
.gj-order-tabs button.video-icon[aria-selected=true],.gj-os-tabs button.video-icon[aria-selected=true]{background:#13754f!important;border-color:#13754f!important;color:white!important}
.gj-order-body>section[role=tabpanel]{align-content:start;display:flex;flex-wrap:wrap;gap:10px}.gj-order-body>section[hidden]{display:none!important}.gj-order-body .gj-card-field{flex:1 1 100%}
dialog.gj-order-window[open]{height:min(760px,calc(100dvh - 24px))!important;max-height:calc(100dvh - 24px)!important;display:flex!important;flex-direction:column!important}.gj-order-body{flex:1;min-height:0;overflow:auto!important;max-height:none!important}.gj-order-context,.gj-order-tabs,.gj-order-footer{flex-shrink:0}.gj-order-footer{display:flex;gap:8px;padding:10px 16px!important}
.os-editor-form .rh-schedule-warning{margin:8px 0!important;max-height:140px;overflow:auto}.os-editor-form .rh-schedule-warning summary{padding:10px;font-size:13px;cursor:pointer;font-weight:600}.os-editor-form .rh-schedule-warning:not([open]){max-height:48px}.os-editor-form .rh-schedule-warning p{margin:8px 12px;font-size:12px;line-height:1.5}
.os-editor{height:min(850px,calc(100dvh - 24px))!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}.os-editor .os-editor-form{flex:1;min-height:0;display:flex!important;flex-direction:column!important;overflow:hidden!important}.os-editor .gj-os-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}.os-editor .os-editor-footer{flex-shrink:0;margin:0!important;padding:8px 0!important;position:static!important;gap:8px!important}.os-editor .gj-os-actionbar{display:flex;gap:8px;flex-wrap:wrap}
.os-editor .os-editor-section{box-shadow:none!important}.os-editor>.os-editor-hint{padding:6px 12px!important;font-size:11px!important}
@media(max-width:700px){.agenda-workspace .sheet{overflow-x:auto!important;overscroll-behavior-x:contain}.agenda-workspace .matrix{min-width:1120px!important;table-layout:fixed}.agenda-workspace .matrix td,.agenda-workspace .matrix th{min-width:160px!important}.agenda-workspace .complete-month{min-width:0!important}.agenda-workspace .complete-month-day{min-width:140px!important}.agenda-filter-panel{margin-bottom:8px!important;padding:8px 12px!important}.gj-order-window,.os-editor{width:calc(100vw - 16px)!important}.gj-order-tabs,.gj-os-tabs{justify-content:flex-start!important}.gj-order-body{padding:10px!important}}

button.video-icon[hidden]{display:none!important}.gj-modal-active #floatingChat,.gj-modal-active .gj-chat-fab{visibility:hidden!important}
.cmms-inline dialog.gj-order-window[open]{height:min(760px,var(--cmms-dialog-max,90vh))!important;inset:auto 0 auto 0!important;top:var(--cmms-dialog-start,8px)!important;margin:0 auto!important;transform:none!important}
.maintenance-kanban-navigation{display:grid!important;grid-template-columns:minmax(0,1fr) 44px 44px!important;align-items:end!important;gap:8px!important}.maintenance-kanban-navigation>label{grid-column:1!important;max-width:none!important}.maintenance-kanban-navigation .video-kanban-arrow{width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;padding:10px!important;flex:0 0 44px!important;display:inline-flex;align-items:center;justify-content:center}
.contract-bi-dashboard .formgrid>label{min-width:0!important}.contract-bi-dashboard input[type=date]{appearance:none;-webkit-appearance:none;width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;min-inline-size:0}

.video-month-scroll{overflow-x:auto;max-width:100%;overscroll-behavior-x:contain}@media(max-width:700px){.video-month-scroll>.complete-month-head,.video-month-scroll>.complete-month-week{min-width:980px}}

.cmms-inline #notice:not(.error){font-size:12px!important;line-height:1.4!important;padding:8px 10px!important;margin:6px 0!important}.cmms-inline .os-central-heading{margin:8px 0!important}.cmms-inline .maintenance-searchbar{margin:8px 0!important}
@media(max-width:540px){.gj-order-tabs{gap:1px!important;padding:6px!important}.gj-order-tabs button.video-icon{border-radius:8px!important}}

.pmoc-more{position:relative}.pmoc-more:not([open])>div{display:none!important}.pmoc-more>div{position:absolute!important;right:0!important;left:auto!important;width:min(290px,calc(100vw - 32px))!important;box-sizing:border-box!important;padding:8px!important;display:grid!important;gap:6px!important;border-radius:12px!important;z-index:50}
.pmoc-more>div>button.gj-action-inline{width:100%!important;max-width:none!important;min-height:44px!important;display:flex!important;justify-content:flex-start!important;gap:12px!important;padding:10px!important;margin:0!important;text-align:left!important;border:0!important;background:#fff!important;font-size:13px!important}.pmoc-more .gj-action-glyph{width:22px!important;min-width:22px!important;height:22px!important;flex:0 0 22px!important;color:#28664b}.pmoc-more .gj-action-label{position:static!important;clip:auto!important;clip-path:none!important;width:auto!important;height:auto!important;white-space:normal!important;flex:1!important;line-height:1.4!important}

/* supplies-mobile-revision.css */
/* Revisão de Suprimentos e Estoque em telas pequenas. */
.sp-workspace,.stock-primary,.stock-section,.stock-dashboard{min-width:0;max-width:100%;box-sizing:border-box}
.sp-workspace .toolbar{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.sp-workspace .toolbar .sp-search{flex:1 1 260px;min-width:180px}.sp-search input{width:100%!important;min-width:0!important;box-sizing:border-box}.sp-workspace .toolbar label{min-width:0}.sp-workspace .tablewrap,.stock-primary .tablewrap,.stock-section .tablewrap,.stock-dashboard .tablewrap{overflow-x:auto!important;max-width:100%;overscroll-behavior-x:contain;scrollbar-width:thin}.sp-workspace table,.stock-primary table,.stock-section table{min-width:650px;table-layout:auto!important}.sp-workspace td,.stock-primary td,.stock-section td{overflow-wrap:break-word;word-break:normal;vertical-align:top}.sp-stock-reference{margin-top:18px;padding-top:14px;border-top:1px solid #dce7df}.sp-stock-reference p{font-size:12px;color:#61776b}.sp-stock-reference table{min-width:420px}
.stock-editor-dialog{width:min(820px,calc(100vw - 24px));height:min(780px,calc(100dvh - 24px));max-height:calc(100dvh - 24px);padding:0;border:1px solid #d9e5df;border-radius:16px;background:#fff;color:#244839;box-sizing:border-box;overflow:hidden}.stock-editor-dialog[open]{display:flex;flex-direction:column}.stock-editor-dialog::backdrop{background:#153b305c}.stock-editor-dialog>.gj-window-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;border-bottom:1px solid #dce7df;flex-shrink:0}.stock-editor-dialog h2{font-size:18px;margin:0}.stock-editor-dialog form{display:flex;flex-direction:column;min-height:0;flex:1;margin:0}.stock-editor-fields{padding:16px 18px;overflow:auto;flex:1;min-height:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-content:start}.stock-editor-fields label{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:13px}.stock-editor-fields input,.stock-editor-fields select{box-sizing:border-box;width:100%;min-width:0;min-height:44px;margin:0;font-size:16px}.stock-editor-footer{padding:10px 18px;flex-shrink:0;border-top:1px solid #dce7df;display:flex;justify-content:flex-end;background:white;margin:0!important}.stock-editor-error{margin:0;padding:8px 18px;color:#ae3030}.stock-editor-error[hidden]{display:none}
.module-navigation-dialog{padding:0!important;width:min(440px,calc(100vw - 24px))!important;border:1px solid #dce7df!important;border-radius:16px!important;box-shadow:0 16px 50px #173d3026}.module-navigation-dialog .gj-window-header{padding:14px 16px!important}.module-navigation-dialog h2{font-size:17px!important;margin:0}.module-navigation-dialog nav{padding:12px!important;display:grid!important;grid-template-columns:1fr!important;gap:8px!important}.module-navigation-dialog nav a{padding:12px!important;min-height:44px;box-sizing:border-box;border-radius:10px!important;display:flex;align-items:center;gap:10px}.module-navigation-dialog nav a:before{content:'›';font-size:22px;color:#35755a}.module-navigation-dialog nav a[aria-current=page]{background:#def2e7!important;border-color:#8abda4!important}
@media(max-width:700px){.sp-workspace>.card,.sp-workspace .sp-hero{padding:14px!important;margin-bottom:12px!important}.sp-hero h2{font-size:20px!important}.sp-tabs{gap:6px!important;margin-bottom:12px!important}.sp-tabs button{flex:1 1 130px!important;min-height:44px!important;padding:8px!important;font-size:13px!important}.sp-kpis{gap:8px!important;margin:10px 0!important}.sp-kpis .stat{padding:10px!important}.sp-info{gap:12px!important}.stock-editor-fields{grid-template-columns:1fr;padding:12px;gap:12px}.stock-editor-dialog{width:calc(100vw - 16px);height:calc(100dvh - 24px)}.stock-dashboard{padding:14px!important}.stock-dashboard-bottom{gap:10px!important}.stock-dashboard h3{margin:0 0 8px}.stock-section{padding:14px!important}.sp-workspace .toolbar .sp-search{flex-basis:100%;min-width:0}.sp-workspace .toolbar label:not(.sp-search){flex:1}.sp-workspace .toolbar button{flex:none}}

@media(max-width:700px){.stock-dashboard .stock-dashboard-bottom{display:grid;grid-template-columns:1fr}.stock-dashboard .stock-dashboard-bottom>section{padding:10px!important}.stock-dashboard .stock-dashboard-bottom h4{font-size:13px;margin:0 0 6px}.stock-dashboard .stock-dashboard-bottom p{font-size:12px;margin:4px 0}.stock-dashboard .stock-dashboard-bottom small{font-size:11px}.stock-dashboard .stock-kpi{padding:10px!important}.stock-primary .stock-title-row{gap:10px}.stock-primary .stock-title-row h2{font-size:20px}.sp-workspace .sp-kpis strong{font-size:22px!important}}

/* v3.154.18 request item actions */
.sp-request-item-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.sp-request-item-toolbar .actions{display:flex;flex-wrap:wrap;gap:8px}
.sp-item-block{color:#77521a;background:#fff6df;border:1px solid #edd49a;border-radius:8px;padding:12px}
.sp-workspace [data-sp-item-edit]{color:#fff;background:#2467a7;border-color:#2467a7;min-height:36px}
.sp-workspace [data-sp-item-remove]{color:#fff;background:#b63232;border-color:#b63232;min-height:36px}
#spAddExistingItem{min-height:44px;background:var(--gj-primary,#168254);color:#fff}

/* Scoped OS assessment window: shared light modal, full-width fields and visible actions. */
.desk-review-dialog.desk-review-job{width:min(960px,calc(100vw - 32px));max-height:90dvh;padding:0;overflow:auto;border:1px solid #dbe5df;border-radius:16px;color:#203d32;background:#fff}
.desk-review-job>header{position:sticky;top:0;z-index:3;background:#fff;padding:16px 20px;border-bottom:1px solid #dbe5df;display:flex;align-items:center;justify-content:space-between}
.desk-review-job>p{margin:12px 20px;line-height:1.5}
.desk-review-job .desk-review-form{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;padding:20px;margin:0;width:100%;box-sizing:border-box}
.desk-review-job .desk-review-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;padding-bottom:18px;border-bottom:1px solid #dbe5df}
.desk-review-summary small,.desk-review-summary strong{display:block;overflow-wrap:anywhere}.desk-review-summary small{margin-bottom:6px;color:#61756a}
.desk-review-job .desk-review-form>label{display:grid;gap:8px;width:100%;max-width:none;margin:0}
.desk-review-job .desk-review-form input:not([type=checkbox]),.desk-review-job .desk-review-form textarea{width:100%;max-width:none;box-sizing:border-box}.desk-review-job textarea{min-height:120px;resize:vertical}
.desk-review-job .desk-review-form>.desk-review-confirm{display:flex;align-items:center;gap:10px}.desk-review-job .desk-review-confirm input[type=checkbox]{appearance:auto;width:20px;height:20px;min-width:20px;min-height:20px;margin:0;order:-1}
.desk-review-job .desk-review-footer{position:sticky;bottom:-20px;z-index:2;background:#fff;padding:16px 0;border-top:1px solid #dbe5df;display:flex;justify-content:flex-end}.desk-review-footer button{min-height:44px}
@media(max-width:600px){.desk-review-job .desk-review-summary{grid-template-columns:1fr}.desk-review-job .desk-review-form{padding:16px}.desk-review-job .desk-review-footer{bottom:-16px}.desk-review-footer button{width:100%}}

.sp-modal .sp-delivery-options label{display:flex!important;align-items:center;gap:.6rem;min-height:44px}
.sp-modal .sp-delivery-options input[type=radio]{flex:0 0 18px;width:18px!important;height:18px!important;min-width:0!important;min-height:0!important;margin:0}
.sp-modal .sp-delivery-options label .required-marker{display:none}
.sp-modal .sp-delivery-options p{margin:0 0 .5rem 1.75rem}

/* v3.156.166 — touch actions for editing/removing requisition items. */
@media screen and (max-width:700px){
  .sp-workspace [data-sp-item-edit],.sp-workspace [data-sp-item-remove]{min-height:44px;min-width:44px}
}

.gj-ui-surface .modalbg > .modal.sp-modal-wide {
  width: min(1120px, calc(100vw - 24px));
  max-width: none;
}
.sp-modal-wide .sp-items-editor {
  min-width: 840px;
}
.sp-modal-wide .sp-items-editor textarea {
  width: 100%;
  min-width: 8rem;
}

/* ui-tokens.css */
/* Padrão mestre aprovado. Alterar tokens aqui, não por módulo. */
:root{--gj-ui-font:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;--gj-ui-page:#f3f7f4;--gj-ui-surface:#fff;--gj-ui-ink:#193d32;--gj-ui-muted:#677c72;--gj-ui-line:#dce6e0;--gj-ui-radius:12px;--gj-ui-action-size:44px;--gj-ui-glyph-size:22px;--gj-ui-gap:8px;--gj-ui-blue:#176cc1;--gj-ui-green:#087b50;--gj-ui-amber:#ffbf54;--gj-ui-red:#cb3843;--gj-ui-neutral:#f0f5f2}
.gj-ui-surface{font-family:var(--gj-ui-font);color:var(--gj-ui-ink)}
.gj-ui-surface button,.gj-ui-surface input,.gj-ui-surface select,.gj-ui-surface textarea{font-family:inherit}
.gj-ui-action,button.gj-action-icon,button.video-icon,.os-toolbar-icon{width:var(--gj-ui-action-size)!important;min-width:var(--gj-ui-action-size)!important;max-width:var(--gj-ui-action-size)!important;height:var(--gj-ui-action-size)!important;min-height:var(--gj-ui-action-size)!important;padding:10px!important;border-radius:10px!important;box-sizing:border-box!important;display:inline-flex!important;justify-content:center!important;align-items:center!important;flex:0 0 var(--gj-ui-action-size)!important;line-height:1!important;gap:0!important}
.gj-ui-action>svg,button.gj-action-icon>.gj-action-glyph,button.video-icon>svg,.os-toolbar-icon>svg{width:var(--gj-ui-glyph-size)!important;height:var(--gj-ui-glyph-size)!important;min-width:var(--gj-ui-glyph-size)!important;stroke-width:1.8;flex:none;pointer-events:none}
button[data-gj-action-tone=view],button[data-video-tone=view],[data-gj-ui-tone=view]{--gj-master-bg:#edf3f9;--gj-master-ink:#3d6485;--gj-master-line:#d0dce7}
button[data-gj-action-tone=success],button[data-video-tone=success],[data-gj-ui-tone=success]{--gj-master-bg:#edf5f1;--gj-master-ink:#2d6551;--gj-master-line:#ccdcd4}
button[data-gj-action-tone=edit],button[data-video-tone=edit],[data-gj-ui-tone=edit],button[data-gj-action-tone=confirmation]{--gj-master-bg:#faf4e8;--gj-master-ink:#806532;--gj-master-line:#e7dcc3}
button[data-gj-action-tone=danger],button[data-video-tone=danger],[data-gj-ui-tone=danger]{--gj-master-bg:#faeeee;--gj-master-ink:#995152;--gj-master-line:#e8d2d2}
button[data-gj-action-tone=secondary],button[data-video-tone=secondary],[data-gj-ui-tone=secondary]{--gj-master-bg:var(--gj-ui-neutral);--gj-master-ink:#50685c;--gj-master-line:#cad8cf}
button.gj-action-icon[data-gj-action-tone],button.video-icon:not([role=tab]),.gj-ui-action[data-gj-ui-tone]{background:var(--gj-master-bg,var(--gj-ui-neutral))!important;color:var(--gj-master-ink,var(--gj-ui-ink))!important;border:1px solid var(--gj-master-line,var(--gj-ui-line))!important}
.gj-ui-action:hover:not(:disabled),button.gj-action-icon:hover:not(:disabled),button.video-icon:hover:not(:disabled){filter:brightness(.95);box-shadow:0 2px 8px #153b3015}
.gj-ui-action:disabled,button.gj-action-icon:disabled,button.video-icon:disabled{opacity:.45;cursor:not-allowed;filter:none}
.gj-ui-action:focus-visible,button.video-icon:focus-visible,.gj-ui-navigation-tab:focus-visible{outline:3px solid #1683ca!important;outline-offset:2px!important}
.gj-ui-action[hidden],button.video-icon[hidden],button.gj-action-icon[hidden],.gj-ui-navigation-tab[hidden]{display:none!important}
.gj-ui-menu-item{display:flex;gap:12px;align-items:center;width:100%;min-height:52px;border:0;background:var(--gj-ui-surface);border-radius:10px;text-align:left;color:var(--gj-ui-ink);padding:8px 10px;font:600 14px var(--gj-ui-font)}.gj-ui-menu-item>svg{width:22px;height:22px;flex:none}.gj-ui-menu-item:hover{background:#edf5f0}
.gj-ui-navigation-tab{width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;padding:10px!important;display:inline-flex!important;justify-content:center;align-items:center;flex:0 0 44px!important;border-radius:10px!important;font-size:0!important}.gj-ui-navigation-tab>svg{width:22px;height:22px;flex:none;stroke-width:1.8}.gj-ui-navigation-tab[aria-selected=true],.gj-ui-navigation-tab.primary{background:#dfede5!important;color:#2d6551!important;border-color:#b9d2c4!important}
.gj-standard-window{border:1px solid var(--gj-ui-line)!important;border-radius:16px!important;box-shadow:0 16px 50px #173d3026!important;background:var(--gj-ui-surface);color:var(--gj-ui-ink)}
.gj-standard-window[data-gj-ui-layout=form]{display:flex!important;flex-direction:column!important;height:min(820px,calc(100dvh - 24px))!important;padding:0!important;overflow:hidden!important}.gj-ui-form{display:flex!important;flex-direction:column!important;flex:1;min-height:0;overflow:hidden;margin:0!important}.gj-ui-form-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:16px;scroll-padding-block:16px}.gj-ui-form-footer{flex:none;display:flex!important;gap:8px;align-items:center;justify-content:flex-end;padding:10px 16px!important;margin:0!important;border-top:1px solid var(--gj-ui-line);background:white;z-index:2}.gj-ui-form-footer [data-gj-window-close-duplicate]{display:none!important}
.gj-ui-surface form label:has(>input:not([type=checkbox]):not([type=radio])),.gj-ui-surface form label:has(>select),.gj-ui-surface form label:has(>textarea){min-width:0;max-width:100%;box-sizing:border-box;line-height:1.4}
.gj-ui-surface input[type=date],.gj-ui-surface input[type=time],.gj-ui-surface input[type=month]{min-inline-size:0!important;max-width:100%!important;box-sizing:border-box!important}
.gj-ui-table-scroll{overflow:auto;max-width:100%;overscroll-behavior-x:contain;scrollbar-width:thin}.gj-ui-table-scroll table{width:100%;border-collapse:collapse;table-layout:auto}.gj-ui-table-scroll th,.gj-ui-table-scroll td{padding:10px 12px;line-height:1.45;text-align:left;border-bottom:1px solid var(--gj-ui-line);vertical-align:top}.gj-ui-table-scroll th{background:#eef5f0;font-weight:650}.gj-ui-surface .actions{gap:8px;align-items:center;flex-wrap:wrap}
[data-gj-status]{display:inline-flex;align-items:center;gap:5px;border-radius:8px;padding:5px 9px;font-weight:600;line-height:1.3;font-size:12px;border:1px solid var(--gj-status-line,#ccd8d0)!important;background:var(--gj-status-bg,#edf3ef)!important;color:var(--gj-status-ink,#50685c)!important}
[data-gj-status=unplanned],[data-gj-status=quoting]{--gj-status-bg:#fff3dd;--gj-status-ink:#875910;--gj-status-line:#edcd96}[data-gj-status=scheduled],[data-gj-status=requested]{--gj-status-bg:#e7efff;--gj-status-ink:#295d9c;--gj-status-line:#bdd0ef}[data-gj-status=confirmed],[data-gj-status=purchased]{--gj-status-bg:#e1f6f2;--gj-status-ink:#176e62;--gj-status-line:#aad7cf}[data-gj-status=running]{--gj-status-bg:#fff0d5;--gj-status-ink:#885608;--gj-status-line:#edc57d}[data-gj-status=review]{--gj-status-bg:#f0e8fa;--gj-status-ink:#6d4794;--gj-status-line:#d4c1e8}[data-gj-status=returned],[data-gj-status=late]{--gj-status-bg:#ffe9e7;--gj-status-ink:#a33939;--gj-status-line:#e8b2b2}[data-gj-status=approved],[data-gj-status=closed]{--gj-status-bg:#e0f1e7;--gj-status-ink:#205e3e;--gj-status-line:#a7cdb7}[data-gj-status=cancelled],[data-gj-status=draft]{--gj-status-bg:#edf0f2;--gj-status-ink:#5d6b75;--gj-status-line:#cdd7dd}[data-gj-status=open]{--gj-status-bg:#e3f5fa;--gj-status-ink:#246979;--gj-status-line:#b2d9e4}
@media(max-width:700px){.gj-ui-form-body{padding:12px}.gj-ui-form-body .formgrid,.gj-ui-form-body .form-grid{grid-template-columns:minmax(0,1fr)!important}.gj-ui-form input:not([type=checkbox]):not([type=radio]),.gj-ui-form select,.gj-ui-form textarea{font-size:16px!important;width:100%;min-width:0!important;box-sizing:border-box;min-height:44px}.gj-ui-table-scroll table{min-width:620px}.gj-ui-form-footer{padding:8px 12px calc(8px + env(safe-area-inset-bottom,0px))!important}.gj-ui-navigation-tab{margin:0!important}}
@media(prefers-reduced-motion:reduce){.gj-ui-surface *{scroll-behavior:auto!important;transition:none!important}}
@media print{.gj-ui-action,.gj-ui-navigation-tab,.gj-ui-form-footer{display:none!important}.gj-ui-table-scroll{overflow:visible}.gj-standard-window{box-shadow:none!important}}
.gj-ui-surface .modalbg{position:fixed;inset:0;z-index:2000;display:flex;align-items:center;justify-content:center;background:#153b305c;padding:12px;box-sizing:border-box;overflow:hidden}.gj-ui-surface .modalbg>.modal{width:min(960px,calc(100vw - 24px));max-height:calc(100dvh - 24px);box-sizing:border-box;margin:0;min-width:0}
.gj-ui-surface button.gj-action-icon[data-gj-action-tone]:not([role=tab]):not([aria-pressed]):not([data-tab]):not(.gj-window-close),.gj-ui-surface button.video-icon[data-video-tone]:not([role=tab]):not([aria-pressed]):not([data-tab]),.gj-ui-surface .gj-ui-action[data-gj-ui-tone]{background:var(--gj-master-bg,var(--gj-ui-neutral))!important;color:var(--gj-master-ink,var(--gj-ui-ink))!important;border:1px solid var(--gj-master-line,var(--gj-ui-line))!important}
/* Auditoria v3.124: apresentação única, sem reescrever handlers de negócio. */
.gj-ui-surface button.gj-action-icon,.gj-ui-surface button.video-icon,.gj-ui-surface .gj-ui-action,.gj-ui-surface .os-toolbar-icon{font-size:0!important;overflow:hidden!important;text-indent:0!important}
.gj-ui-surface button.gj-action-icon>.gj-action-label{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;font-size:0!important;pointer-events:none!important}
.gj-ui-surface button.gj-action-icon *,.gj-ui-surface button.video-icon *,.gj-ui-surface .os-toolbar-icon *,.gj-ui-surface .gj-ui-action *{pointer-events:none!important}
.gj-ui-surface button.gj-action-icon svg~svg,.gj-ui-surface .quote-view-toggle button>svg~svg{display:none!important}
.gj-ui-surface .gj-window-header>.gj-window-close{width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;flex-basis:44px!important}
.gj-ui-surface .gj-window-header>[data-gj-window-close-duplicate=true],.gj-ui-surface .gj-standard-window [data-gj-window-close-duplicate=true]{display:none!important}
.gj-ui-surface .gj-standard-window.gj-ui-short-form{height:auto!important;max-height:calc(100dvh - 24px)!important}
.gj-ui-surface .gj-ui-short-form .gj-ui-form{flex:0 1 auto}.gj-ui-surface .gj-ui-short-form .gj-ui-form-body{flex:0 1 auto;max-height:calc(100dvh - 180px)}
#shell #accountMenu .account-panel button::before,#shell #accountMenu #atMyInbox::before,#shell #accountMenu [data-account-logout]::before{content:none!important;display:none!important}
#shell>main>header .headerActions>button,#shell>main>header #accountMenu>summary{min-height:44px!important;height:44px!important;box-sizing:border-box}
#shell>main>header .headerActions>button:not(#releaseBell),#shell>main>header #accountMenu>summary{min-width:44px}
#shell #accountMenu .account-menu-head [data-account-close]{width:44px!important;height:44px!important;min-height:44px!important;flex:none}
.workspace-context>.workspace-back{width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;font-size:0!important;display:inline-flex;align-items:center;justify-content:center;padding:10px!important}
.workspace-context>.workspace-back::before{content:'←';font:24px/1 system-ui}
.gj-ui-section-tab{display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;gap:9px!important;min-height:44px!important;min-width:44px!important;max-width:none!important;width:auto!important;padding:10px 12px!important;font-size:13px!important;line-height:1.3!important;border:1px solid #cad8cf!important;border-radius:10px!important;background:#fff!important;color:#355d4a!important;box-sizing:border-box;flex:0 0 auto!important}
.gj-ui-section-tab>svg{width:22px!important;height:22px!important;flex:none!important;stroke-width:1.8;pointer-events:none}
.gj-ui-section-tab>.gj-ui-menu-label{font-size:13px!important;color:inherit!important;white-space:normal!important;line-height:1.3!important;pointer-events:none}
.gj-ui-section-tab[aria-selected=true],.gj-ui-section-tab[aria-pressed=true],.gj-ui-section-tab.active,.gj-ui-section-tab.primary{background:#dfede5!important;color:#2d6551!important;border-color:#b9d2c4!important}
.gj-ui-navigation-tab.active,.gj-ui-navigation-tab[aria-pressed=true],.gj-ui-navigation-tab[aria-selected=true]{background:#dfede5!important;color:#2d6551!important;border-color:#b9d2c4!important}
.gj-ui-surface #pmocMenu button,.gj-ui-surface .pmoc-sidebar button{min-height:44px}
.gj-ui-surface .gj-config-card .gj-config-symbol{display:inline-flex;width:32px;height:32px;color:#25694e}.gj-config-symbol svg{width:24px;height:24px}
.gj-ui-surface .at-table button[aria-label],.gj-ui-surface .at-detail button[aria-label]{min-width:44px!important;min-height:44px!important}
.gj-ui-surface .agenda-workspace .toolbar,.gj-ui-surface .agenda-toolbar{gap:8px!important;align-items:center;flex-wrap:wrap}
.gj-ui-surface .agenda-workspace .toolbar>button,.gj-ui-surface .agenda-toolbar>button{flex-shrink:0}
.gj-ui-surface .finance-tabs,.gj-ui-surface main>nav{gap:8px;align-items:center;flex-wrap:wrap}
@media(max-width:700px){.gj-ui-section-tab{font-size:12px!important;padding:8px 10px!important}.gj-ui-section-tab>.gj-ui-menu-label{font-size:12px!important}.gj-ui-surface .gj-config-grid{grid-template-columns:1fr!important}.gj-ui-surface .gj-config-list{grid-template-columns:1fr!important}.gj-ui-surface input:not([type=checkbox]):not([type=radio]),.gj-ui-surface select,.gj-ui-surface textarea{font-size:16px;max-width:100%;box-sizing:border-box}}

.workspace-back:has(svg)::before{content:none!important}.workspace-back svg{width:22px;height:22px}.pmoc-tabs .gj-ui-section-tab.primary{background:#dfede5!important;color:#2d6551!important;border-color:#b9d2c4!important}

.permission-group{min-width:0;width:100%;box-sizing:border-box;border:1px solid #d5e1dc;border-radius:12px;padding:12px;margin:0 0 12px}.permission-group legend{font-weight:700;color:#244c40;padding:0 6px}.permission-group .doc-checkbox{display:flex;gap:10px;align-items:flex-start;padding:8px 0}.permission-group input[type=checkbox]{flex:0 0 auto}.permission-group span{min-width:0}.permission-group small{display:block;font-size:13px;line-height:1.5;color:#566e64;overflow-wrap:break-word}
.workflow-context{padding:12px 14px;margin-bottom:16px;border:1px solid #cbded5;border-radius:12px;background:#f0f8f4;display:grid;gap:10px;min-width:0}.workflow-context>strong{overflow-wrap:anywhere}.workflow-context nav{display:flex;flex-wrap:wrap;gap:8px}.workflow-context small{color:#526d61}.workflow-context button{min-height:44px}.workflow-context svg{width:22px;height:22px;flex-shrink:0}@media(max-width:600px){.workflow-context{padding:10px}.workflow-context nav{gap:6px}.workflow-context .gj-ui-section-tab{font-size:13px;padding:8px}}

/* Paleta suave v3.126: ação identificada por ícone e cor, sem grandes áreas saturadas. */
body.gj-ui-surface button.primary:not(.gj-action-icon):not(.video-icon):not(.gj-ui-action):not(.gj-ui-section-tab):not(.gj-ui-navigation-tab){background:#edf5f1!important;color:#2d6551!important;border:1px solid #ccdcd4!important;box-shadow:none!important}
body.gj-ui-surface #nav button.on,body.gj-ui-surface #nav button[aria-current=page]{background:#dfede5!important;color:#2d6551!important;border-color:#b9d2c4!important}
body.gj-ui-surface .gj-ui-section-tab:hover:not(:disabled){background:#f3f7f5!important;color:#2d6551!important}
body.gj-ui-surface .gj-ui-section-tab[aria-selected=true],body.gj-ui-surface .gj-ui-section-tab[aria-pressed=true],body.gj-ui-surface .gj-ui-section-tab.active,body.gj-ui-surface .gj-ui-section-tab.primary{background:#dfede5!important;color:#2d6551!important;border-color:#b9d2c4!important}
body.gj-ui-surface button:focus-visible{outline:2px solid #4b7965!important;outline-offset:3px!important}

/* Responsive Financeiro: navegação compacta sem crescer o cabeçalho. */
.workspace-system #view.finance-workspace,.workspace-system #view.finance-workspace>.finance-header{min-width:0;box-sizing:border-box}
.workspace-system #view .finance-tabs{flex-wrap:nowrap!important;overflow-x:auto!important;max-width:100%;width:100%;box-sizing:border-box;min-width:0;padding:2px 2px 8px;scroll-padding-inline:4px;overscroll-behavior-x:contain;scrollbar-width:thin}
.workspace-system #view .finance-tabs button{min-height:44px!important;height:44px!important;flex-shrink:0!important;white-space:nowrap!important;margin:0!important}

.equipment-trace{margin:8px 0 14px;padding:10px;border:1px solid #dce6e0;border-radius:10px;background:#f7faf8;overflow-wrap:anywhere}.equipment-trace summary{font-size:13px;font-weight:600;cursor:pointer}.equipment-trace p,.equipment-trace small{font-size:12px;display:block;line-height:1.6}

/* Diretório de clientes: linhas compactas e identidade sempre visível. */
#view .client-directory-table{width:100%!important;min-width:0!important;table-layout:fixed!important}
#view .client-directory-table th,#view .client-directory-table td{white-space:normal!important;overflow-wrap:anywhere;vertical-align:middle;padding:14px!important}
#view .client-directory-table th:first-child{width:auto!important}#view .client-directory-table th:nth-child(2){width:150px!important}#view .client-directory-table th:last-child{width:178px!important}
#view .client-directory-table .client-directory-info strong{display:block;font-size:15px;line-height:1.4;color:#233d34}
#view .client-directory-table .client-directory-info small{display:block;margin-top:4px;color:#64766c;font-size:12px}
#view .client-directory-contact{margin-top:6px;font-size:13px;line-height:1.45}#view .client-directory-contact span{display:block}
#view .client-directory-actions .actions{display:flex!important;flex-flow:row wrap!important;gap:6px!important;justify-content:flex-start!important;margin:0!important}
#view .client-directory-actions button{flex:0 0 44px!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;padding:8px!important;margin:0!important}
#view .client-directory-table tr[hidden]{display:none!important}
@media(max-width:650px){#view .client-directory-table thead{display:none!important}#view .client-directory-table,#view .client-directory-table tbody{display:block!important}#view .client-directory-table tbody tr{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;padding:14px 12px!important;gap:8px 10px!important;border-bottom:1px solid #dce6df!important}#view .client-directory-table td{display:block!important;width:auto!important;min-width:0!important;border:0!important;padding:0!important}#view .client-directory-table .client-directory-info{grid-column:1/-1}#view .client-directory-table .client-directory-contract{align-self:center;font-size:12px!important;color:#61766a}#view .client-directory-table .client-directory-actions{align-self:center}#view .client-directory-actions .actions{flex-wrap:nowrap!important}#view .client-directory-table tbody tr[hidden]{display:none!important}}

.contract-control>.toolbar:has(#contractSearch){display:grid!important;grid-template-columns:minmax(0,2fr) minmax(130px,1fr) minmax(150px,1fr);gap:12px!important}.contract-control>.toolbar label{min-width:0!important}.contract-control>.toolbar input,.contract-control>.toolbar select{min-width:0!important;width:100%!important;box-sizing:border-box}.contract-view button[aria-pressed=true]{background:#e0f0e7!important;color:#24664b!important;border-color:#bbd7c8!important}.contract-records:not(.cards-view) .contract-record{border-radius:0!important;border-width:0 0 1px 3px!important;margin:0!important;padding:14px!important;grid-template-columns:minmax(0,2fr) minmax(0,1.3fr) 200px!important;gap:12px!important}.contract-records:not(.cards-view) .contract-record>div{min-width:0;overflow-wrap:anywhere}.contract-records:not(.cards-view) .contract-record .actions{display:flex!important;flex-flow:row wrap!important;gap:6px!important}.contract-records:not(.cards-view) .contract-record h3{font-size:15px!important;margin:4px 0!important}.contract-records:not(.cards-view) .contract-record p{font-size:13px!important;margin:5px 0!important}.contract-records:not(.cards-view) .contract-record small{font-size:12px!important}.contract-control .expiry-expired .expiry-label{background:#f9e9e8;color:#964747}.contract-control .expiry-1 .expiry-label{background:#fbf0db;color:#8e6528}.contract-records:not(.cards-view) .contract-record .actions button{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;margin:0!important;padding:8px!important}
@media(max-width:700px){.contract-control>.toolbar:has(#contractSearch){grid-template-columns:minmax(0,1fr)!important}.contract-records:not(.cards-view) .contract-record{grid-template-columns:minmax(0,1fr)!important;gap:6px!important}.contract-records:not(.cards-view) .contract-record>div:nth-child(2){display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px}.contract-records:not(.cards-view) .contract-created{display:none!important}.contract-control .contract-kpis button{min-height:78px!important;padding:12px!important}.contract-control .contract-kpis strong{font-size:22px!important}.contract-control .contract-kpis span{font-size:12px!important}}
.commercial-hub-nav{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid #dbe5df}.commercial-hub-nav button{display:flex!important;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 14px!important;font-size:13px!important;background:#fff!important;border:1px solid #d7e2dc!important;color:#506b5c!important}.commercial-hub-nav button[aria-current=page]{background:#e1f1e8!important;border-color:#bad8c7!important;color:#226345!important}.commercial-hub-nav svg{width:20px;height:20px;flex:none}.commercial-hub-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0}.commercial-hub-metrics article{border:1px solid #dce7e0;background:#f6faf7;border-radius:12px;padding:16px;min-width:0}.commercial-hub-metrics strong{display:block;font-size:28px;color:#245f45;margin-top:6px}.commercial-hub-metrics small{font-size:13px;color:#64786c}.commercial-phase-list{display:grid;gap:0;border:1px solid #dce7e0;border-radius:10px;overflow:hidden}.commercial-phase-list button{display:flex!important;justify-content:space-between;align-items:center;gap:12px;text-align:left;padding:14px!important;border:0!important;border-bottom:1px solid #e3ebe6!important;border-radius:0!important;background:white!important;color:#335e47!important}.commercial-funnel-picker{padding:12px 0 18px}.commercial-funnel-picker label{display:grid;gap:6px;max-width:600px}.commercial-funnel-picker select{width:100%;min-width:0;box-sizing:border-box}@media(max-width:650px){.commercial-hub-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.commercial-hub-nav button{min-width:0!important;padding:10px!important;font-size:12px!important}.commercial-hub-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.commercial-overview{padding:16px!important}}

#view:has(>.commercial-hub-nav) [data-sales-home],#view:has(>.commercial-hub-nav) [data-sales-list],#view:has(>.commercial-hub-nav) [data-sales-quotes]{display:none!important}

.os-editor-form:not(:has([data-os-group=extra] .os-editor-fields>*)) [data-os-tab=extra]{display:none!important}

.appointment-center-list .appointment-center-row{--confirmation-accent:#7c9085;border:1px solid #dce6df!important;border-top:3px solid var(--confirmation-accent)!important;border-radius:12px!important;padding:14px!important;margin:10px 0!important;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1.8fr) minmax(0,1.3fr) 44px!important;gap:12px!important;align-items:center!important;background:#fff!important;white-space:normal!important}.appointment-center-list .appointment-center-row>div{min-width:0;overflow-wrap:anywhere}.appointment-center-list .appointment-center-row[data-confirmation-state=waiting]{--confirmation-accent:#be984b}.appointment-center-list .appointment-center-row[data-confirmation-state=confirmed]{--confirmation-accent:#6ba88a}.appointment-center-list .appointment-center-row[data-confirmation-state=request]{--confirmation-accent:#a18ab8}.appointment-center-list .appointment-center-row[data-confirmation-state=failure]{--confirmation-accent:#c18b88}.appointment-center-identity strong{font-size:17px!important;color:#2c6e51}.appointment-center-identity span,.appointment-center-service span{display:block;font-size:12px!important;color:#687c70;margin-top:5px}.appointment-center-service strong{font-size:14px!important;line-height:1.45}.appointment-center-state-badge{display:inline-block!important;border-radius:7px;padding:6px 8px;font-size:12px!important;line-height:1.4;color:#68756d;background:#f0f4f1}.appointment-center-row[data-confirmation-state=waiting] .appointment-center-state-badge{background:#fbf2de;color:#896731}.appointment-center-row[data-confirmation-state=confirmed] .appointment-center-state-badge{background:#e6f3ea;color:#387450}.appointment-center-row[data-confirmation-state=request] .appointment-center-state-badge{background:#f1eaf8;color:#74548a}.appointment-center-row[data-confirmation-state=failure] .appointment-center-state-badge{background:#f9e9e7;color:#995b56}.appointment-center-row-actions{display:flex!important;justify-content:flex-end}.appointment-center-row-actions button{height:44px!important;width:44px!important;min-width:44px!important;min-height:44px!important;padding:8px!important;margin:0!important}@media(max-width:700px){.appointment-center-list .appointment-center-row{grid-template-columns:minmax(0,1fr) 44px!important;gap:9px!important}.appointment-center-row .appointment-center-identity{grid-column:1/-1}.appointment-center-row .appointment-center-service{grid-column:1;grid-row:2}.appointment-center-row .appointment-center-situation{grid-column:1;grid-row:3}.appointment-center-row .appointment-center-row-actions{grid-column:2;grid-row:2/4;align-self:center}.appointment-center-columns{display:none!important}}
main>nav.compact-section-navigation{display:flex!important;align-items:center;flex-wrap:wrap!important;gap:8px!important;padding:8px 0 12px!important;position:relative;overflow:visible!important}main>nav.compact-section-navigation>button.section-primary{display:flex!important;align-items:center;justify-content:center;gap:7px;min-height:44px!important;padding:9px 12px!important;margin:0!important;font-size:13px!important}main>nav.compact-section-navigation button[aria-current=page]{background:#e1f1e8!important;color:#286548!important;border-color:#bdd8c8!important}.section-more{position:relative;margin:0!important}.section-more>summary{list-style:none;cursor:pointer;min-height:44px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;padding:10px 14px;border:1px solid #d5e2d9;border-radius:10px;background:#fff;color:#466551;font-size:13px;font-weight:600}.section-more>summary::-webkit-details-marker{display:none}.section-more>summary:after{content:'⌄';margin-left:8px}.section-more-menu{position:absolute;z-index:40;top:calc(100% + 6px);right:0;width:min(320px,calc(100vw - 44px));padding:8px;border:1px solid #d7e4dc;border-radius:12px;background:#fff;box-shadow:0 8px 24px #193c2826;display:grid;gap:4px;max-height:60dvh;overflow:auto}.section-more-menu button{display:flex!important;align-items:center;justify-content:flex-start!important;gap:10px;width:100%!important;min-height:44px!important;padding:10px!important;margin:0!important;text-align:left;font-size:13px!important;border-radius:8px!important}.section-current{width:100%;margin:4px 0 0!important;font-size:12px!important;color:#62786a}.section-reload{margin-left:auto!important}@media(max-width:650px){main>nav.compact-section-navigation{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}main>nav.compact-section-navigation>button.section-primary{min-width:0!important;font-size:12px!important;padding:8px!important;flex-direction:column;gap:4px!important;white-space:normal!important}.compact-section-navigation>.section-more{grid-column:1/3}.compact-section-navigation>.section-more>summary{justify-content:space-between}.compact-section-navigation .section-more-menu{right:auto;left:0}.compact-section-navigation>.section-reload{justify-self:end}.compact-section-navigation>.section-current{grid-column:1/-1}}

main>nav.compact-section-navigation button[hidden]{display:none!important}

dialog.pmoc-plan-create>label{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:7px!important;min-width:0!important;margin:16px 0!important;font-size:14px!important}dialog.pmoc-plan-create>label input{box-sizing:border-box;width:100%!important;min-width:0!important;max-width:100%!important;font-size:16px!important;padding:10px!important;min-height:44px!important}dialog.pmoc-plan-create>p{font-size:13px!important;line-height:1.6!important;color:#67796f}

dialog.mf-window.mf-recurring[open]{height:min(760px,calc(100dvh - 24px))!important;max-height:calc(100dvh - 24px)!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;box-sizing:border-box!important}dialog.mf-recurring>.mf-tabs{flex:0 0 auto!important;flex-wrap:nowrap!important;justify-content:space-between!important;margin:0!important;padding:10px 14px!important;overflow-x:auto!important}dialog.mf-recurring>.mf-panels{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain;padding:18px!important;box-sizing:border-box}dialog.mf-recurring>.mf-panels>section>label{display:grid!important;grid-template-columns:minmax(0,1fr)!important;min-width:0!important;gap:6px!important;margin:0 0 16px!important;font-size:14px!important}dialog.mf-recurring .mf-panels input,dialog.mf-recurring .mf-panels select{min-width:0!important;max-width:100%!important;width:100%;box-sizing:border-box}dialog.mf-recurring .mf-panels input[type=checkbox]{width:auto!important;justify-self:start}dialog.mf-recurring>.mf-footer{flex:0 0 auto!important;padding:12px 16px!important}dialog.mf-recurring>.mf-feedback:empty{display:none!important}dialog.mf-recurring>.gj-window-header,dialog.mf-recurring>.mf-header{flex:0 0 auto!important}@media(max-width:600px){dialog.mf-recurring>.mf-panels{padding:14px!important}dialog.mf-recurring .mf-tabs>button{min-width:44px!important;padding:8px!important}}
/* Maintenance navigation: native section picker on mobile; no overlay over work. */
main>nav.compact-section-navigation>.section-mobile-picker{display:none!important}
@media(max-width:650px){
main>nav.compact-section-navigation{display:grid!important;grid-template-columns:minmax(0,1fr) 44px!important;align-items:end!important;gap:10px!important;width:100%!important;box-sizing:border-box!important;min-width:0!important}
main>nav.compact-section-navigation>.section-mobile-picker{display:flex!important;flex-direction:column;gap:6px;min-width:0;margin:0!important;font-size:12px!important;color:#466551}
main>nav.compact-section-navigation>.section-mobile-picker select{display:block!important;box-sizing:border-box!important;min-width:0!important;width:100%!important;max-width:100%!important;min-height:44px!important;height:44px!important;padding:8px 10px!important;border:1px solid #cbdcd1;border-radius:10px;background:#fff;font-size:16px!important;color:#244c3a}
main>nav.compact-section-navigation>button.section-primary,main>nav.compact-section-navigation>.section-more,main>nav.compact-section-navigation>.section-current{display:none!important}
main>nav.compact-section-navigation>.section-reload{grid-column:2!important;grid-row:1!important;align-self:end!important;justify-self:end!important;margin:0!important;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;padding:10px!important}
}
/* Give the model/checklist content a real viewport and keep header/footer bounded. */
dialog.mf-window.mf-detail[open]{height:min(760px,calc(100dvh - 24px))!important;max-height:calc(100dvh - 24px)!important;display:flex!important;flex-direction:column!important}
dialog.mf-window.mf-detail>.mf-header{flex:0 0 auto!important;min-height:0!important;padding:12px 16px!important}
dialog.mf-window.mf-detail>.mf-body{display:flex!important;flex-direction:column!important;flex:1 1 0!important;min-height:0!important;overflow:hidden!important;padding:12px!important}
dialog.mf-window.mf-detail .mf-body>.mf-tabs{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;flex:0 0 auto!important;gap:4px!important;margin:0 0 12px!important;padding:4px 0 8px!important;min-height:44px!important}
dialog.mf-window.mf-detail .mf-body>.mf-tabs>button{flex:0 0 auto!important;white-space:nowrap!important;font-size:13px!important;padding:8px 10px!important;min-height:44px!important}
dialog.mf-window.mf-detail .mf-body>.mf-panels{flex:1 1 auto!important;min-height:0!important;overflow:auto!important;overscroll-behavior:contain}
dialog.mf-window.mf-detail>.mf-footer{flex:0 0 auto!important;padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px))!important;min-height:0!important}
dialog.mf-window.mf-detail>.mf-footer button{min-height:44px!important;height:44px!important;flex:0 1 auto!important;font-size:13px!important;padding:8px 12px!important;background:#e5f1eb!important;color:#2b6650!important;border:1px solid #c4dcd0!important}
dialog.mf-window.mf-detail>.mf-feedback:empty{display:none!important}
/* The same body sizing applies when creating or editing a plan/checklist. */
dialog.mf-window:not(.mf-recurring)[open]{height:min(760px,calc(100dvh - 24px))!important;max-height:calc(100dvh - 24px)!important;display:flex!important;flex-direction:column!important}
dialog.mf-window:not(.mf-recurring)>.mf-body{flex:1 1 0!important;min-height:0!important;overflow:auto!important;padding:12px!important}
dialog.mf-window:not(.mf-recurring)>.mf-header,dialog.mf-window:not(.mf-recurring)>.gj-window-header{flex:0 0 auto!important;min-height:0!important;padding:12px 16px!important}
dialog.mf-window:not(.mf-recurring)>.mf-footer{flex:0 0 auto!important;min-height:0!important;padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px))!important}
dialog.mf-window:not(.mf-recurring)>.mf-feedback:empty{display:none!important}

/* v3.156.43: embedded windows use the parent viewport, not the tall iframe. */
.cmms-inline dialog:is(.mf-window,.gj-standard-window,.maintenance-modal)[open]{
 top:var(--cmms-dialog-start,8px)!important;bottom:auto!important;
 height:min(760px,var(--cmms-dialog-max,calc(100dvh - 24px)))!important;
 max-height:var(--cmms-dialog-max,calc(100dvh - 24px))!important;
 margin:0 auto!important;transform:none!important;box-sizing:border-box!important;
}
.cmms-inline dialog:is(.mf-window,.gj-standard-window,.maintenance-modal)[open]>.gj-window-header,
.cmms-inline dialog:is(.mf-window,.gj-standard-window,.maintenance-modal)[open]>.mf-header{flex-shrink:0!important}
.mf-checklist-list-row>button[data-keep-label]{width:auto!important;min-width:110px!important;max-width:none!important;white-space:nowrap!important;flex-shrink:0!important}
.appointment-center-row-actions button{overflow:hidden!important;flex:0 0 44px!important}
.appointment-center-row-actions button>.gj-action-label{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important}
button.gj-action-inline>.gj-action-label{white-space:normal;overflow-wrap:normal;word-break:normal}
.gj-window-close::before,.gj-window-close::after{content:none!important;display:none!important}

/* Keep compact action hit targets independent from nested SVG paths. */
.os-toolbar-icon>svg,.os-toolbar-icon>svg *,.mf-os-row>button>svg,.mf-os-row>button>svg *{pointer-events:none!important}
.stock-primary td>small,.stock-primary td small{display:block;margin-top:4px;color:#687c70}

/* v3.156.44: internal workflows audited on 04/11/2026. */
.at-row-title :is(.at-subtoggle,.at-star,.at-check-circle){flex:0 0 44px!important;width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;max-height:44px!important;padding:8px!important;white-space:nowrap!important;overflow:hidden!important}
.cv-dialog .cv-actions{display:flex;flex-wrap:wrap;gap:8px;min-width:0}
.cv-dialog .cv-actions button[data-keep-label]{flex:0 1 auto;width:auto!important;max-width:100%!important;min-width:min(220px,100%)!important;height:auto!important;min-height:44px;white-space:normal;overflow-wrap:normal;word-break:normal}
.cw-type-list,.cw-type-row,.cw-type-new{min-width:0;max-width:100%;box-sizing:border-box}
.cw-type-row{grid-template-columns:minmax(0,1fr) minmax(60px,86px) auto auto}
.cw-type-row input,.cw-type-new input{box-sizing:border-box;width:100%;min-width:0}
.cw-type-row input[type=checkbox]{width:auto}
@media(max-width:1000px){.cw-type-row{grid-template-columns:minmax(0,1fr) minmax(60px,86px)}.cw-type-row button{justify-self:start}}
.sgq-document-dialog[open]{display:flex;flex-direction:column;overflow:hidden;max-height:calc(100dvh - 32px)}
.sgq-document-dialog .cv-head{flex:none}
.sgq-document-dialog .cv-body{flex:1 1 auto;min-height:0;overflow:auto}
.sgq-document-footer{flex:none;display:flex;justify-content:flex-end;padding:12px 20px;background:#fff;border-top:1px solid #d5e1da}
@media(max-width:650px){.sgq-document-dialog[open]{max-height:100dvh}}

/* v3.156.46: labelled record actions must never inherit icon-only dimensions. */
#view .client-directory-table th:last-child{width:260px!important}
#view .client-directory-table th,#view .client-directory-table td{padding:10px 14px!important}
#view .client-directory-actions .actions{flex-flow:row wrap!important;align-items:center!important;gap:6px!important}
#view .client-directory-actions button.gj-record-action{flex:0 0 auto!important;width:auto!important;min-width:64px!important;max-width:none!important;height:40px!important;min-height:40px!important;padding:8px 12px!important;white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important;line-height:1.2!important;box-sizing:border-box!important}
#view .client-directory-actions button[data-profile].gj-record-action{min-width:88px!important}
#view .contract-records .contract-record .actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;align-content:center!important;min-width:0!important}
#view .contract-records .contract-record .actions button.gj-record-action{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-width:0!important;max-width:100%!important;height:40px!important;min-height:40px!important;padding:8px 10px!important;margin:0!important;white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important;line-height:1.2!important;box-sizing:border-box!important;flex:none!important}
@media(max-width:700px){#view .contract-records:not(.cards-view) .contract-record{grid-template-columns:minmax(0,1fr)!important}#view .contract-records .contract-record .actions{width:min(100%,240px)!important}}
@media(max-width:650px){#view .client-directory-table tbody tr{grid-template-columns:minmax(0,1fr)!important;padding:12px!important}#view .client-directory-table .client-directory-actions{grid-column:1/-1}#view .client-directory-actions button.gj-record-action,#view .contract-records .contract-record .actions button.gj-record-action{height:44px!important;min-height:44px!important}}

/* OS tabs are navigation, with a consistent compact height and local scrolling. */
#editorForm.os-editor-form .gj-os-tabs{display:flex!important;flex-flow:row nowrap!important;justify-content:flex-start!important;align-items:center!important;gap:8px!important;padding:8px 0!important;overflow-x:auto!important;min-height:0!important}
#editorForm.os-editor-form .gj-os-tabs>.gj-os-tab[data-keep-label],#editorForm.os-editor-form .gj-os-tabs>.os-step-back{display:inline-flex!important;flex:0 0 auto!important;align-items:center!important;justify-content:center!important;width:auto!important;min-width:110px!important;max-width:none!important;height:44px!important;min-height:44px!important;max-height:44px!important;margin:0!important;padding:10px 16px!important;white-space:nowrap!important;border-radius:8px!important;line-height:1.2!important}
#editorForm.os-editor-form .gj-os-tab[data-keep-label] small{display:none!important}
#editorForm.os-editor-form .gj-os-tabs>.os-step-back{min-width:84px!important}
#editorForm.os-editor-form .os-editor-footer{display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important}
#editorForm.os-editor-form .os-editor-footer .gj-os-actionbar{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:8px!important;min-width:0!important;max-width:100%!important}
#editorForm.os-editor-form .os-editor-footer button:not(.gj-window-close){width:auto!important;min-width:44px!important;max-width:100%!important;height:auto!important;min-height:44px!important;padding:10px 12px!important;gap:7px!important;white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important;line-height:1.3!important;box-sizing:border-box!important}
#editorForm.os-editor-form .os-editor-footer .os-editor-save{min-width:130px!important;white-space:nowrap!important}
#editorForm.os-editor-form .os-editor-footer button>svg{flex:none!important}

.user-specific-permissions{margin:8px 0 14px 24px;padding:12px;border:1px solid #d5e1da;border-radius:8px;background:#f5f9f6;display:grid;gap:8px}.user-specific-permissions>strong{font-size:12px;color:#4c6658}.user-specific-permissions .doc-checkbox{display:flex;align-items:flex-start;gap:8px;min-width:0}.user-specific-permissions input[type=checkbox]{flex:none;width:18px;height:18px;min-height:18px;margin:2px 0}

/* Activity notices are readable records, not toolbar actions. */
.at-inbox-list>button.at-inbox-note{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important;width:100%!important;min-width:0!important;max-width:100%!important;height:auto!important;min-height:76px!important;max-height:none!important;padding:14px 16px!important;text-align:left!important;white-space:normal!important;overflow-wrap:anywhere!important;box-sizing:border-box!important;flex:none!important}
.at-inbox-note>strong,.at-inbox-note>small,.at-inbox-note>span{display:block!important;min-width:0!important;max-width:100%!important;white-space:normal!important}
.at-inbox-note:focus-visible{outline:3px solid #1683ca;outline-offset:2px}

/* greenjob-design-system.css */
/* Greenjob Design System v3.142.0 — additive and opt-in. Existing screens remain unchanged. */
:root {
 --gjds-page:#f3f5f7; --gjds-surface:#fff; --gjds-soft:#f0f5f2;
 --gjds-text:#193d32; --gjds-muted:#677c72; --gjds-border:#dce6e0;
 --gjds-brand:#167654; --gjds-brand-soft:#e0f0e7;
 --gjds-info:#2d6fae; --gjds-info-soft:#eaf2f9;
 --gjds-warning:#94631c; --gjds-warning-soft:#fff4df;
 --gjds-danger:#a23f42; --gjds-danger-soft:#faeeee;
 --gjds-radius:12px; --gjds-control:44px; --gjds-gap:8px;
}
.gjds { color:var(--gjds-text); font-family:Inter,system-ui,-apple-system,'Segoe UI',sans-serif; }
.gjds *, .gjds *::before,.gjds *::after { box-sizing:border-box; }
.gjds-panel {background:var(--gjds-surface);border:1px solid var(--gjds-border);border-radius:var(--gjds-radius);padding:16px;}
.gjds-toolbar {display:flex;align-items:center;flex-wrap:wrap;gap:var(--gjds-gap);}
.gjds-button {min-height:var(--gjds-control);display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--gjds-border);border-radius:var(--gj-radius-control,8px);padding:8px 14px;background:var(--gjds-surface);color:var(--gjds-text);font-family:inherit;font-size:14px;font-weight:600;line-height:1.3;cursor:pointer;}
.gjds-button--icon {width:var(--gjds-control);min-width:var(--gjds-control);padding:8px;}
.gjds-button--primary {background:var(--gjds-brand);color:#fff;border-color:var(--gjds-brand);}
.gjds-button--view {background:var(--gjds-info-soft);color:var(--gjds-info);border-color:#cddfec;}
.gjds-button--success {background:var(--gjds-brand-soft);color:var(--gjds-brand);border-color:#b8dcc8;}
.gjds-button--warning {background:var(--gjds-warning-soft);color:var(--gjds-warning);border-color:#ead5ae;}
.gjds-button--danger {background:var(--gjds-danger-soft);color:var(--gjds-danger);border-color:#eacdd0;}
.gjds-button:hover:not(:disabled){filter:brightness(.97)}
.gjds-button:disabled{opacity:.45;cursor:not-allowed}
.gjds :focus-visible {outline:3px solid #2d6fae;outline-offset:2px;}
.gjds-field {width:100%;min-height:var(--gjds-control);border:1px solid var(--gjds-border);border-radius:var(--gj-radius-control,8px);background:#fff;color:var(--gjds-text);padding:10px 12px;font:inherit;}
.gjds-label {display:block;margin-bottom:6px;color:var(--gjds-muted);font-weight:600;font-size:13px;}
.gjds-badge {display:inline-flex;align-items:center;border-radius:8px;border:1px solid var(--gjds-border);padding:5px 9px;background:var(--gjds-soft);font-size:12px;font-weight:600;}
.gjds-badge--success{background:var(--gjds-brand-soft);color:var(--gjds-brand);border-color:#b8dcc8}
.gjds-badge--info{background:var(--gjds-info-soft);color:var(--gjds-info);border-color:#cddfec}
.gjds-badge--warning{background:var(--gjds-warning-soft);color:var(--gjds-warning);border-color:#ead5ae}
.gjds-badge--danger{background:var(--gjds-danger-soft);color:var(--gjds-danger);border-color:#eacdd0}
.gjds-table-wrap {width:100%;overflow-x:auto;border:1px solid var(--gjds-border);border-radius:12px;}
.gjds-table {width:100%;border-collapse:collapse;text-align:left;}
.gjds-table th,.gjds-table td {padding:12px;border-bottom:1px solid var(--gjds-border);}
.gjds-table th {background:var(--gjds-soft);font-size:13px;}
.gjds-modal {display:flex;flex-direction:column;max-height:calc(100dvh - 24px);background:#fff;border:1px solid var(--gjds-border);border-radius:16px;overflow:hidden;}
.gjds-modal__header,.gjds-modal__footer {padding:12px 16px;display:flex;align-items:center;gap:8px;background:#fff;flex:none;}
.gjds-modal__header{border-bottom:1px solid var(--gjds-border);justify-content:space-between;}
.gjds-modal__body{padding:16px;overflow:auto;flex:1;min-height:0;}
.gjds-modal__footer{border-top:1px solid var(--gjds-border);justify-content:flex-end;}
@media(max-width:700px){.gjds-panel{padding:12px}.gjds-modal__footer{padding-bottom:calc(10px + env(safe-area-inset-bottom,0px))}.gjds-field{font-size:16px}}
@media(prefers-reduced-motion:reduce){.gjds *{transition:none!important;animation:none!important}}

/* v3.144.0 — shared primitives; explicit opt-in to avoid regressions */
:root {
 --gjds-radius-sm:8px; --gjds-radius-lg:16px;
 --gjds-control-compact:36px; --gjds-control-standard:44px;
 --gjds-space-1:4px; --gjds-space-2:8px; --gjds-space-3:12px; --gjds-space-4:16px;
 --gjds-shadow-popover:0 8px 28px rgb(25 61 50 / 12%);
}
.gjds-button--compact {min-height:var(--gjds-control-compact);padding:6px 10px;font-size:13px;}
.gjds-button--compact.gjds-button--icon {width:var(--gjds-control-compact);min-width:var(--gjds-control-compact);padding:6px;}
.gjds-button--neutral {background:var(--gjds-surface);color:var(--gjds-text);border-color:var(--gjds-border);}
.gjds-button--primary:hover:not(:disabled){background:var(--gj-green-hover,#124e36);border-color:var(--gj-green-hover,#124e36);filter:none}
.gjds-button--danger:hover:not(:disabled){background:#f4dfe0;filter:none}
.gjds-button[aria-pressed=true],.gjds-button[aria-selected=true]{background:var(--gjds-brand-soft);color:var(--gjds-brand);border-color:#b8dcc8;}
.gjds-button[aria-busy=true]{pointer-events:none;opacity:.7;}
.gjds-button--icon:not([aria-label]):not([title]) {outline:2px dashed var(--gjds-warning);outline-offset:2px;}
.gjds-section-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:16px;}
.gjds-tabs{display:flex;gap:8px;align-items:center;max-width:100%;overflow-x:auto;padding-bottom:2px;}
.gjds-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.gjds-field:focus-visible{border-color:var(--gjds-info);outline:2px solid var(--gjds-info-soft);outline-offset:1px;}
.gjds-footer-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:flex-end;padding:12px 16px;background:#fff;border-top:1px solid var(--gjds-border);}
.gjds-modal__footer{position:sticky;bottom:0;z-index:2;}
.gjds-status--open{background:var(--gjds-info-soft);color:var(--gjds-info)}
.gjds-status--pending{background:var(--gjds-warning-soft);color:var(--gjds-warning)}
.gjds-status--complete{background:var(--gjds-brand-soft);color:var(--gjds-brand)}
.gjds-status--blocked{background:var(--gjds-danger-soft);color:var(--gjds-danger)}
@media(max-width:700px){.gjds-form-grid{grid-template-columns:minmax(0,1fr)}.gjds-footer-actions{padding-bottom:calc(12px + env(safe-area-inset-bottom,0px));}}
@media(forced-colors:active){.gjds-button,.gjds-field,.gjds-panel{border:1px solid CanvasText;}}

/* v1.0 phase 3 — reusable filters, table controls and modal actions. */
.gjds-filterbar{display:flex;align-items:flex-end;flex-wrap:wrap;gap:var(--gj-space-2,8px);min-width:0;max-width:100%;}
.commercial-primary-filters.gjds-filterbar,.client-directory-tools.gjds-filterbar{display:flex;align-items:flex-end;flex-wrap:wrap;grid-template-columns:none;gap:var(--gj-space-2,8px);}
.gjds-filterbar>label{display:grid;gap:5px;flex:1 1 180px;min-width:0;max-width:100%;font-size:12px;font-weight:600;color:var(--gjds-muted);}
.gjds-filterbar>label:has(input[type=search]){flex:2 1 240px;}
.gjds-filterbar :is(input,select){box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:var(--gjds-control);border:1px solid var(--gjds-border);border-radius:var(--gj-radius-control,8px);background:var(--gjds-surface);color:var(--gjds-text);padding:8px 10px;font:inherit;font-size:14px;}
.gjds-filterbar>button{min-height:var(--gjds-control);max-width:100%;align-self:flex-end;}
.gjds-table-wrap :is(th,td){vertical-align:middle;}
.gjds-table-wrap th{white-space:nowrap;}
.gjds-table-wrap .gjds-row-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:var(--gjds-gap);}
.gjds-dialog-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:var(--gjds-gap);padding:var(--gjds-space-3);border-top:1px solid var(--gjds-border);background:var(--gjds-surface);}
.gjds-dialog-actions>button{max-width:100%;}
@media(max-width:700px){.gjds-filterbar>label{flex:1 1 100%;}.gjds-filterbar>button{flex:0 1 auto;}.gjds-dialog-actions{justify-content:stretch;}.gjds-dialog-actions>button{flex:1 1 130px;}}

/* Final consolidation: reusable table/filter/form states across workspaces. */
.gjds-toolbar{min-width:0;max-width:100%;gap:var(--gjds-gap);}
.gjds-toolbar :is(input,select,textarea){max-width:100%;min-width:0;box-sizing:border-box;}
.gjds-toolbar>label{min-width:0;max-width:100%;}
.gjds-table-wrap{overscroll-behavior-x:contain;scrollbar-width:thin;}
.gjds-table :is(th,td){overflow-wrap:break-word;}
.gjds-table tbody tr:focus-within{background:var(--gjds-soft);}
.gjds-field:disabled,.gjds-field[readonly]{background:var(--gjds-soft);color:var(--gjds-muted);}
.gjds-field[readonly]{cursor:default;}
.gjds-dialog-actions button:focus-visible,.gjds-filterbar button:focus-visible{outline:3px solid var(--gj-focus,#419274);outline-offset:2px;}
@media(max-width:700px){.gjds-toolbar{flex-wrap:wrap;}.gjds-table-wrap{max-width:100%;}.gjds-dialog-actions{padding-bottom:calc(var(--gjds-space-3) + env(safe-area-inset-bottom,0px));}}

/* design-tokens.css */
/* Greenjob Gestão — padrão visual das telas. */
@media screen {
 :root, [data-gj-theme="original"] {
  --gj-page:#f3f6f4; --gj-surface:#fff; --gj-soft:#f8faf9;
  --gj-ink:#182922; --gj-muted:#53665d; --gj-line:#dce5df;
  --gj-green:#176344; --gj-green-soft:#e6f3eb; --gj-green-line:#b8dcc8;
  --gj-blue:#245482; --gj-blue-soft:#eaf2f9; --gj-blue-line:#cddfec;
  --gj-purple:#7040a0; --gj-purple-soft:#f2eafa; --gj-purple-line:#d9c6eb;
  --gj-orange:#82500f; --gj-orange-soft:#fff1dc; --gj-orange-line:#ecd0a5;
  --gj-red:#952e32; --gj-red-soft:#faeeee; --gj-red-line:#eacdd0;
  --gj-gray:#52616b; --gj-gray-soft:#f0f2f4; --gj-gray-line:#d2d9df;
  --gj-font:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;
  --gj-font-size:15px; --gj-radius:12px; --gj-radius-control:8px;
  --gj-title:clamp(27px,3vw,34px); --gj-section-title:19px; --gj-focus:#419274; --gj-green-hover:#124e36;
  --gj-space-1:4px; --gj-space-2:8px; --gj-space-3:12px; --gj-space-4:16px;
  --gj-panel-padding:16px; --gj-cell-y:10px; --gj-cell-x:12px;
  --gj-control:42px; --gj-compact:36px; --gj-glyph:20px;
  --gj-shadow:0 8px 28px rgb(25 61 50 / 12%);
 }
 [data-gj-theme="modern"] {--gj-page:#f5f7f6;--gj-radius:16px;--gj-panel-padding:20px;--gj-cell-y:12px;--gj-space-3:16px;}
 [data-gj-theme="compact"] {--gj-radius:8px;--gj-panel-padding:12px;--gj-cell-y:6px;--gj-cell-x:10px;--gj-space-3:8px;--gj-font-size:13px;}
 @media (pointer:coarse) {:root {--gj-control:44px;}}
 /* Bridge existing APIs: module styles consume these without a second palette. */
 :root, [data-gj-theme] {
  --green:var(--gj-green);--light:var(--gj-green-soft);--dark:var(--gj-ink);--border:var(--gj-line);--ink:var(--gj-ink);--muted:var(--gj-muted);--bg:var(--gj-page);--white:var(--gj-surface);
  --gjds-page:var(--gj-page);--gjds-surface:var(--gj-surface);--gjds-soft:var(--gj-soft);--gjds-text:var(--gj-ink);--gjds-muted:var(--gj-muted);--gjds-border:var(--gj-line);
  --gjds-brand:var(--gj-green);--gjds-brand-soft:var(--gj-green-soft);--gjds-info:var(--gj-blue);--gjds-info-soft:var(--gj-blue-soft);--gjds-warning:var(--gj-orange);--gjds-warning-soft:var(--gj-orange-soft);--gjds-danger:var(--gj-red);--gjds-danger-soft:var(--gj-red-soft);
  --gjds-radius:var(--gj-radius);--gjds-control:var(--gj-control);--gjds-control-standard:var(--gj-control);--gjds-control-compact:var(--gj-compact);--gjds-gap:var(--gj-space-2);
  --gj-ui-font:var(--gj-font);--gj-ui-page:var(--gj-page);--gj-ui-surface:var(--gj-surface);--gj-ui-ink:var(--gj-ink);--gj-ui-muted:var(--gj-muted);--gj-ui-line:var(--gj-line);--gj-ui-radius:var(--gj-radius);--gj-ui-gap:var(--gj-space-2);--gj-ui-action-size:var(--gj-control);--gj-ui-glyph-size:var(--gj-glyph);
 }
}

/* ui-global.css */
/* Shared screen components. Legacy selector adapters are deliberately scoped.
   Keep print layouts outside this layer. */
@media screen {
 body.gj-ui-surface {font-family:var(--gj-font);font-size:var(--gj-font-size);background:var(--gj-page);color:var(--gj-ink);}
 body.gj-ui-surface :is(#pageTitle,.workspace-main-title) {font-size:var(--gj-title);line-height:1.15;letter-spacing:-.025em;}
 body.gj-ui-surface :is(.card,.gjds-panel)>h2 {font-size:var(--gj-section-title);line-height:1.25;}
 body.gj-ui-surface button.primary {border-radius:var(--gj-radius-control);}
 body.gj-ui-surface button.primary:not(.gj-approved-action):not(.gj-action-icon):not(.gj-ui-action):not(.video-icon):not([role=tab]):not([aria-pressed]) {min-height:var(--gj-control);}
 body.gj-ui-surface #shell>.sidebar {background:var(--gj-surface);color:var(--gj-ink);border-color:var(--gj-line);}
 body.gj-ui-surface #shell>.sidebar nav button.on {background:var(--gj-green-soft);color:var(--gj-green-hover);border-left-color:var(--gj-green);}
 body.gj-ui-surface #shell>main>header {background:var(--gj-surface);border-color:var(--gj-line);}
 body.gj-ui-surface :is(#pageTitle,.gj-config-center>h2,.commercial-heading h2) {color:var(--gj-ink);}
 body.gj-ui-surface :is(.card,.proposal-panel,.commercial-negotiation,.commercial-hub-metrics article,.gjds-panel) {background:var(--gj-surface);border-color:var(--gj-line);border-radius:var(--gj-radius);}
 body.gj-ui-surface :is(.toolbar,.actions,.proposal-actions,.gjds-toolbar) {gap:var(--gj-space-2);flex-wrap:wrap;}
 body.gj-ui-surface :is(input,select,textarea):not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=hidden]) {border-color:var(--gj-line);border-radius:var(--gj-radius-control);max-width:100%;box-sizing:border-box;}
 body.gj-ui-surface :is(input,select):not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=hidden]) {min-height:var(--gj-control);}
 body.gj-ui-surface :is(input,select,textarea):focus-visible {outline:2px solid var(--gj-focus);outline-offset:2px;}
 body.gj-ui-surface :is(.tablewrap,.table-wrap,.table-responsive,.gj-ui-table-scroll) {max-width:100%;overflow-x:auto;}
 body.gj-ui-surface :is(.tablewrap,.table-wrap,.table-responsive,.gj-ui-table-scroll) table:not(.matrix):not(.sheet) :is(th,td) {padding:var(--gj-cell-y) var(--gj-cell-x);border-color:var(--gj-line);}
 body.gj-ui-surface :is(.tablewrap,.table-wrap,.table-responsive,.gj-ui-table-scroll) table:not(.matrix):not(.sheet) td {font-size:14px;}
 body.gj-ui-surface :is(.tablewrap,.table-wrap,.table-responsive,.gj-ui-table-scroll) table:not(.matrix):not(.sheet) th {background:var(--gj-soft);color:var(--gj-muted);font-size:13px;}
 body.gj-ui-surface :is(.gj-ui-form-footer,.gjds-footer-actions,.gjds-modal__footer) {background:var(--gj-surface);gap:var(--gj-space-2);flex-wrap:wrap;}
 body.gj-ui-surface :is(.commercial-board,.gjds-kanban) {gap:var(--gj-space-3);}
 body.gj-ui-surface .commercial-column {background:var(--gj-soft);border-color:var(--gj-line);border-radius:var(--gj-radius);}
 body.gj-ui-surface .commercial-settings>div {background:var(--gj-surface);border-color:var(--gj-line);box-shadow:var(--gj-shadow);}
 /* All three legacy action engines share the exact semantic color mapping. */
 body.gj-ui-surface button:is([data-gj-action-tone],[data-video-tone],[data-gj-ui-tone]), .gjds-button {
  --gj-master-bg:var(--gj-gray-soft);--gj-master-ink:var(--gj-gray);--gj-master-line:var(--gj-gray-line);
 }
 body.gj-ui-surface button:is([data-gj-action-tone=success],[data-video-tone=success],[data-gj-ui-tone=success],[data-gj-action-tone=confirmation]), .gjds-button--success {--gj-master-bg:var(--gj-green-soft);--gj-master-ink:var(--gj-green);--gj-master-line:var(--gj-green-line);}
 body.gj-ui-surface button:is([data-gj-action-tone=view],[data-gj-action-tone=edit],[data-video-tone=view],[data-video-tone=edit],[data-gj-ui-tone=view],[data-gj-ui-tone=edit]), .gjds-button--view {--gj-master-bg:var(--gj-blue-soft);--gj-master-ink:var(--gj-blue);--gj-master-line:var(--gj-blue-line);}
 body.gj-ui-surface button:is([data-gj-action-tone=export],[data-video-tone=export],[data-gj-ui-tone=export]), .gjds-button--export {--gj-master-bg:var(--gj-purple-soft);--gj-master-ink:var(--gj-purple);--gj-master-line:var(--gj-purple-line);}
 body.gj-ui-surface button:is([data-gj-action-tone=warning],[data-video-tone=warning],[data-gj-ui-tone=warning]), .gjds-button--warning {--gj-master-bg:var(--gj-orange-soft);--gj-master-ink:var(--gj-orange);--gj-master-line:var(--gj-orange-line);}
 body.gj-ui-surface button:is([data-gj-action-tone=danger],[data-video-tone=danger],[data-gj-ui-tone=danger]), .gjds-button--danger {--gj-master-bg:var(--gj-red-soft);--gj-master-ink:var(--gj-red);--gj-master-line:var(--gj-red-line);}
 body.gj-ui-surface button:is([data-gj-action-tone],[data-video-tone],[data-gj-ui-tone]):not([role=tab]):not([aria-pressed]):not([data-tab]):not(.gj-ui-section-tab), .gjds-button:not(.gjds-button--primary) {background:var(--gj-master-bg)!important;color:var(--gj-master-ink)!important;border-color:var(--gj-master-line)!important;}
 body.gj-ui-surface button.primary:not([role=tab]):not([aria-pressed]):not([data-tab]):not(.gj-ui-section-tab):not(.gj-ui-navigation-tab):not([data-gj-action-tone]):not([data-video-tone]):not([data-gj-ui-tone]), .gjds-button--primary {background:var(--gj-green)!important;color:var(--gj-surface)!important;border-color:var(--gj-green)!important;}
 body.gj-ui-surface button:is(.gj-action-icon,.video-icon,.gj-ui-action,.os-toolbar-icon) {--gj-ui-action-size:var(--gj-control);}
 @media (max-width:700px) {body.gj-ui-surface #pageTitle {font-size:clamp(20px,4.5vw,27px);}}
 /* Only row/card actions shrink; dialog footers and coarse pointers keep 44px. */
 body.gj-ui-surface :is(td,.commercial-negotiation,.certificate-kinds>.card,.pmoc-record,.mf-list-row,.mf-os-row) button:is(.gj-action-icon,.video-icon,.gj-ui-action),body.gj-ui-surface :is(.mf-list-row,.mf-os-row)>button {--gj-ui-action-size:var(--gj-compact);width:var(--gj-ui-action-size)!important;min-width:var(--gj-ui-action-size)!important;max-width:var(--gj-ui-action-size)!important;height:var(--gj-ui-action-size)!important;min-height:var(--gj-ui-action-size)!important;flex-basis:var(--gj-ui-action-size)!important;padding:7px!important;}
 body.gj-ui-surface button[aria-busy=true] {opacity:.65;cursor:progress;}
 body.gj-ui-surface button:disabled {opacity:.45;cursor:not-allowed;}
 body.gj-ui-surface button:focus-visible {outline:2px solid var(--gj-focus)!important;outline-offset:2px!important;}
 .workspace-system #view button.gjds-button--compact {min-height:var(--gj-compact);}
 .gjds-button>svg {width:var(--gj-glyph);height:var(--gj-glyph);flex:none;}
 .gjds-empty,.gjds-loading {padding:var(--gj-panel-padding);text-align:center;color:var(--gj-muted);border:1px dashed var(--gj-line);border-radius:var(--gj-radius);}
 .gjds-alert {padding:var(--gj-space-3);border:1px solid var(--gj-orange-line);background:var(--gj-orange-soft);color:var(--gj-orange);border-radius:var(--gj-radius);}
 .gjds-upload {padding:var(--gj-panel-padding);border:1px dashed var(--gj-line);border-radius:var(--gj-radius);}
 .gjds-pagination {display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:var(--gj-space-2);}
 .gjds-context-menu {padding:var(--gj-space-2);background:var(--gj-surface);border:1px solid var(--gj-line);border-radius:var(--gj-radius);box-shadow:var(--gj-shadow);}
 /* Operational controls share the standard height, including legacy editors. */
 body.gj-ui-surface :is(.agenda-control-row,.agenda-main-actions,.appointment-tabs,.mf-tabs,.mf-footer,.focus-stages,.focus-action-footer,.os-editor-footer) button {min-height:var(--gj-control)!important;}
 body.gj-ui-surface .os-editor :is(input,select):not([type=checkbox]):not([type=radio]):not([type=hidden]),body.gj-ui-surface .appointment-center-filters :is(input,select) {min-height:var(--gj-control)!important;}
 body.gj-ui-surface :is(.mf-list-row,.pmoc-record,.agenda-workspace,.os-editor-section,.focus-equipment-picker,.appointment-section) {border-radius:var(--gj-radius)!important;}
 body.gj-ui-surface :is(.pmoc-record,.agenda-workspace,.os-editor-section,.appointment-section) {padding:var(--gj-panel-padding)!important;}
 .gj-appearance-options {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;border:0;padding:0;margin:16px 0;}
 .gj-appearance-options label {display:flex;align-items:flex-start;gap:10px;padding:14px;border:1px solid var(--gj-line);border-radius:var(--gj-radius);cursor:pointer;}
 .gj-appearance-options input {width:auto;flex:none;margin-top:4px;accent-color:var(--gj-green);}
 .gj-appearance-options small {display:block;color:var(--gj-muted);margin-top:6px;}
 .gj-appearance-preview {background:var(--gj-page);color:var(--gj-ink);border:1px solid var(--gj-line);border-radius:var(--gj-radius);padding:var(--gj-panel-padding);font-size:var(--gj-font-size);}
 .gj-appearance-preview .gjds-panel {padding:var(--gj-panel-padding);}
 .gj-appearance-preview table :is(td,th) {padding:var(--gj-cell-y) var(--gj-cell-x);}
 .gj-appearance-preview .gjds-toolbar {margin-bottom:var(--gj-space-3);}
 .gj-appearance-preview h3 {margin-top:0;}
 @media (pointer:coarse),(max-width:700px) {
  body.gj-ui-surface :is(td,.commercial-negotiation,.certificate-kinds>.card,.pmoc-record,.mf-list-row,.mf-os-row) button:is(.gj-action-icon,.video-icon,.gj-ui-action),body.gj-ui-surface :is(.mf-list-row,.mf-os-row)>button {--gj-ui-action-size:var(--gj-control);}
  .workspace-system #view button.gjds-button--compact {min-height:var(--gj-control);}
  .gj-appearance-options {grid-template-columns:1fr;}
 }
 @media (prefers-reduced-motion:reduce) {.gjds * {transition:none!important;animation:none!important;}}
}

.modal .pmoc-bulk-scroll{min-width:0;max-width:100%;overflow-x:auto}
.modal #pmocBulkTable{width:max-content;min-width:100%;table-layout:auto}
.modal #pmocBulkTable [data-col]{min-width:9rem!important}
.modal #pmocBulkTable [data-col=environment_id]{min-width:14rem!important}
.email-composer-visual{min-height:170px;max-height:420px;overflow:auto;margin:10px 0;padding:15px;border:1px solid var(--gj-line,#dce6e0);border-radius:var(--gj-radius,12px);background:#fff;color:var(--gj-ink,#193d32);font:15px/1.65 var(--gj-font,Arial,sans-serif);white-space:pre-wrap;overflow-wrap:anywhere}
.email-composer-visual:focus-visible{outline:3px solid var(--gj-focus,#419274);outline-offset:2px}
.email-composer-visual img{display:block;max-width:100%;height:auto;margin:10px 0}
.email-composer-tools details{margin:10px 0;border:1px solid var(--gj-line,#dce6e0);border-radius:8px;padding:10px}
.email-composer-tools details summary{cursor:pointer;font-weight:600}
.email-composer-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;align-items:start;margin-top:12px}
.email-composer-layout .email-composer-visual{margin:0;min-height:320px}
.email-composer-layout [data-preview]{display:block!important;min-width:0;max-height:520px;overflow:auto;margin:0}
.email-composer-layout .email-preview-title{display:block;color:var(--gj-muted,#53665d);font-size:13px;margin-bottom:10px}
.email-composer-layout-settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;border:1px solid var(--gj-line,#dce6e0);border-radius:10px;padding:12px;margin-top:12px}
.email-composer-layout-settings legend{font-weight:700;color:var(--gj-ink,#193d32)}
.email-composer-layout-settings label{display:grid;gap:5px;min-width:0}
.email-composer-layout-settings :is(select,input){min-width:0;max-width:100%}
@media(max-width:800px){.email-composer-layout{grid-template-columns:minmax(0,1fr)}.email-composer-layout-settings{grid-template-columns:minmax(0,1fr)}}

/* Design System v1.0 / phase 2: module adapters. Layout only; no DOM rewrites. */
@media screen {
 body.gj-ui-surface :is(.commercial-workspace,.finance-workspace,.sp-workspace,.agenda-workspace,.client-directory,.contract-control) {
  --gj-module-gap:var(--gj-space-3);
  --gj-module-border:var(--gj-line);
  color:var(--gj-ink);
  min-width:0;
 }
 body.gj-ui-surface :is(.commercial-workspace,.finance-workspace,.sp-workspace,.agenda-workspace,.client-directory,.contract-control)
 :is(.toolbar,.commercial-filter-fields,.commercial-view-switch,.client-directory-tools,.client-directory-toolbar) {
  gap:var(--gj-space-2);
  align-items:center;
  max-width:100%;
 }
 body.gj-ui-surface :is(.commercial-workspace,.finance-workspace,.sp-workspace,.agenda-workspace,.client-directory,.contract-control)
 :is(.toolbar,.commercial-filter-fields,.client-directory-tools) :is(input,select) {max-width:100%;min-width:0;}
 body.gj-ui-surface :is(.commercial-workspace,.finance-workspace,.sp-workspace,.agenda-workspace,.client-directory,.contract-control)
 :is(.toolbar,.commercial-filter-fields,.client-directory-tools) label {max-width:100%;min-width:0;}
 body.gj-ui-surface :is(.commercial-table-wrap,.tablewrap,.table-wrap,.table-responsive,.client-directory-table) {
  max-width:100%;overscroll-behavior-x:contain;
 }
 body.gj-ui-surface :is(.commercial-workspace,.finance-workspace,.sp-workspace,.agenda-workspace,.contract-control)
 :is(.card,.commercial-client-group,.fin-return,.stock-section) {min-width:0;border-radius:var(--gj-radius);}
 body.gj-ui-surface :is(.commercial-workspace,.finance-workspace,.sp-workspace,.agenda-workspace,.client-directory,.contract-control)
 :is(button,input,select,textarea):focus-visible {outline:2px solid var(--gj-focus)!important;outline-offset:2px!important;}
 body.gj-ui-surface :is(.commercial-workspace,.finance-workspace,.sp-workspace,.agenda-workspace,.client-directory,.contract-control)
 :is(.toolbar,.actions,.proposal-actions) button:not(.gj-action-icon):not(.gj-ui-action):not(.video-icon) {max-width:100%;}
 @media(max-width:700px) {
  body.gj-ui-surface :is(.commercial-workspace,.finance-workspace,.sp-workspace,.agenda-workspace,.client-directory,.contract-control)
  :is(.toolbar,.commercial-filter-fields,.client-directory-tools) {align-items:stretch;}
  body.gj-ui-surface :is(.commercial-workspace,.finance-workspace,.sp-workspace,.agenda-workspace,.client-directory,.contract-control)
  :is(.toolbar,.commercial-filter-fields,.client-directory-tools)>label {flex:1 1 170px;}
  body.gj-ui-surface :is(.commercial-workspace,.finance-workspace,.sp-workspace,.agenda-workspace,.client-directory,.contract-control)
  :is(.toolbar,.actions,.proposal-actions) button:not(.gj-action-icon):not(.gj-ui-action):not(.video-icon) {white-space:normal;overflow-wrap:break-word;}
 }
}

/* Greenjob DS 1.0: accessible, reusable finishing rules, scoped to the app.
   These do not alter form state, permission decisions or operational flows. */
@media screen {
 body.gj-ui-surface :is(.gjds-panel,.card,.proposal-panel,.commercial-negotiation) {min-width:0;}
 body.gj-ui-surface :is(.toolbar,.actions,.proposal-actions,.gjds-toolbar)>* {max-width:100%;}
 body.gj-ui-surface :is(.gjds-table-wrap,.tablewrap,.table-wrap,.table-responsive,.gj-ui-table-scroll) {overscroll-behavior-x:contain;}
 body.gj-ui-surface :is(.gjds-button,.gj-action-icon,.gj-ui-action,.video-icon):focus-visible {outline:3px solid var(--gj-focus)!important;outline-offset:2px!important;}
 body.gj-ui-surface :is(input,textarea,select):disabled {cursor:not-allowed;opacity:.65;}
 body.gj-ui-surface :is(input,textarea,select)[readonly] {background:var(--gj-soft);color:var(--gj-muted);cursor:default;}
 body.gj-ui-surface :is(.gjds-panel,.gj-appearance-preview,.commercial-column) {overflow-wrap:break-word;}
 .gj-action-tooltip {width:max-content;max-width:min(260px,calc(100vw - 24px));font-size:12px;line-height:1.35;padding:7px 9px;}
 @media(max-width:700px) {
  body.gj-ui-surface :is(.gjds-toolbar,.proposal-actions,.toolbar) {gap:var(--gj-space-2);}
  body.gj-ui-surface :is(.gjds-panel,.card) {max-width:100%;}
  .gj-action-tooltip {max-width:min(220px,calc(100vw - 24px));}
 }
}

/* Manual visual: readable tab labels and bounded dialog layout. */
@media screen {
 body.gj-ui-surface .gjds-button[aria-pressed=true]:not(.gjds-button--primary) {
  --gj-master-bg:var(--gj-green-soft);--gj-master-ink:var(--gj-green);--gj-master-line:var(--gj-green-line);
 }
 body.gj-ui-surface .gj-reviewed-tablist {
  display:flex;align-items:center;flex-wrap:nowrap!important;gap:var(--gj-space-2);
  min-width:0;max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;
  scrollbar-width:thin;scroll-padding-inline:4px;padding-block:4px;
 }
 body.gj-ui-surface .gj-reviewed-tablist .gj-reviewed-tab:not([hidden]) {
  display:inline-flex!important;align-items:center;justify-content:center;
  flex:0 0 auto!important;gap:7px;width:auto!important;min-width:0!important;max-width:none!important;
  height:auto!important;min-height:var(--gj-control)!important;margin:0;
  padding:8px 12px!important;white-space:nowrap;font-size:14px!important;line-height:1.25;
  border:1px solid var(--gj-line)!important;border-radius:var(--gj-radius-control)!important;
  background:var(--gj-surface)!important;color:var(--gj-muted)!important;
 }
 body.gj-ui-surface .gj-reviewed-tablist .gj-reviewed-tab:is([aria-selected=true],[aria-pressed=true],[aria-current=page],.active,.primary) {
  color:var(--gj-green)!important;background:var(--gj-green-soft)!important;
  border-color:var(--gj-green-line)!important;box-shadow:inset 0 -2px var(--gj-green)!important;font-weight:700;
 }
 body.gj-ui-surface .gj-reviewed-tablist .gj-reviewed-tab:hover:not(:disabled):not([aria-selected=true]):not([aria-pressed=true]):not([aria-current=page]) {
  background:var(--gj-soft)!important;color:var(--gj-ink)!important;
 }
 body.gj-ui-surface .gj-reviewed-tablist .gj-reviewed-tab>svg {width:var(--gj-glyph);height:var(--gj-glyph);flex:none}
 body.gj-ui-surface .gj-standard-window {border-radius:var(--gj-radius)!important}
 body.gj-ui-surface .gj-standard-window>.gj-window-header {
  background:var(--gj-surface)!important;border-color:var(--gj-line);padding:10px var(--gj-panel-padding)!important;
 }
 body.gj-ui-surface .gj-standard-window>.gj-window-header>.gj-window-close {
  flex-basis:var(--gj-control)!important;width:var(--gj-control)!important;max-width:none!important;
  min-width:var(--gj-control)!important;height:var(--gj-control)!important;min-height:var(--gj-control)!important;
  border-color:var(--gj-gray-line)!important;background:var(--gj-gray-soft)!important;
  border-radius:var(--gj-radius-control)!important;color:var(--gj-gray)!important;
 }
 body.gj-ui-surface .gj-ui-form-footer {
  justify-content:flex-end!important;gap:var(--gj-space-2);border-color:var(--gj-line)!important;
 }
 body.gj-ui-surface .gj-ui-form-footer>.form-save-error {flex:1 0 100%;margin:0}
 body.gj-ui-surface .gj-ui-form-footer>button {min-height:var(--gj-control)}
 body.gj-ui-surface .gj-field-error {display:block;font-size:13px;color:var(--gj-red);font-weight:500}
 body.gj-ui-surface .gj-standard-window :is(input,select,textarea)[aria-invalid=true] {border-color:var(--gj-red)!important}
 dialog.gj-standard-window:not([open]) {display:none!important}
 @media(max-width:700px) {
  body.gj-ui-surface .gj-reviewed-tablist .gj-reviewed-tab:not([hidden]) {min-height:44px!important}
  body.gj-ui-surface .gj-ui-form-footer {padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))!important}
 }
}

/* approved-actions.css */
/* Last in the shared bundle: icon dimensions never apply to navigation or record text. */
html body button.gj-approved-action.gj-approved-action:not([hidden]):not(.gj-approved-labelled),
html body #view button.gj-approved-action.gj-approved-action:not([hidden]):not(.gj-approved-labelled),
html body #editorForm button.gj-approved-action.gj-approved-action:not([hidden]):not(.gj-approved-labelled),
html body #editorForm.os-editor-form .os-editor-footer button.gj-approved-action.gj-approved-action:not([hidden]):not(.gj-approved-labelled),
html body .contract-records .contract-record .actions button.gj-approved-action.gj-approved-action:not([hidden]):not(.gj-approved-labelled){
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 flex:0 0 var(--gj-control,44px)!important;width:var(--gj-control,44px)!important;min-width:var(--gj-control,44px)!important;max-width:var(--gj-control,44px)!important;
 height:var(--gj-control,44px)!important;min-height:var(--gj-control,44px)!important;max-height:var(--gj-control,44px)!important;
 padding:10px!important;margin:0!important;gap:0!important;box-sizing:border-box!important;
 border-radius:var(--gj-radius-control,8px)!important;line-height:1!important;overflow:hidden!important;vertical-align:middle!important;
}
html body button.gj-approved-action>svg{display:block!important;width:var(--gj-glyph,20px)!important;height:var(--gj-glyph,20px)!important;min-width:var(--gj-glyph,20px)!important;flex:none!important;margin:0!important;pointer-events:none!important}
html body button.gj-approved-action::before,html body button.gj-approved-action::after{content:none!important;display:none!important}
html body button.gj-approved-action[data-gj-approved-tone=danger]{color:#a72929!important;background:#fff0f0!important;border:1px solid #edc3c3!important}
html body button.gj-approved-action[data-gj-approved-tone=secondary]{color:#344f43!important;background:#f3f6f4!important;border:1px solid #d0dcd5!important}
html body button.gj-approved-action:is([data-gj-approved-tone=success],.primary:not([data-gj-approved-tone=danger])){color:#fff!important;background:var(--gj-green,#176344)!important;border:1px solid var(--gj-green,#176344)!important}
html body button.gj-approved-action[data-gj-approved-tone=view]{color:#1763a5!important;background:#edf5ff!important;border:1px solid #bdd7ec!important}
html body button.gj-approved-action:focus-visible{outline:3px solid #1683ca!important;outline-offset:2px!important}
html body button.gj-approved-action:disabled{opacity:.45!important;cursor:not-allowed!important}
#view .client-directory-table th:last-child{width:176px!important}
#view .client-directory-actions .actions,#view .contract-records .contract-record .actions{display:flex!important;flex-flow:row wrap!important;justify-content:flex-start!important;align-items:center!important;gap:8px!important}
#view .contract-records:not(.cards-view) .contract-record{grid-template-columns:minmax(0,2fr) minmax(0,1.3fr) 200px!important}
#editorForm.os-editor-form .os-editor-footer .gj-approved-action{flex-shrink:0!important}
@media(max-width:700px){#view .contract-records:not(.cards-view) .contract-record{grid-template-columns:minmax(0,1fr)!important}}
@media print{html body button.gj-approved-action{display:none!important}}

/* A hidden control must not occupy space or receive a tap. */
html body button[hidden]{display:none!important}

/* Main actions keep their meaning visible; compact controls are limited to rows and window chrome. */
html body button.gj-approved-action.gj-approved-labelled{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:auto!important;max-width:100%!important;min-width:44px!important;min-height:44px!important;height:auto!important;flex:0 1 auto!important;padding:10px 14px!important;gap:8px!important;border-radius:9px!important;line-height:1.35!important;white-space:normal!important}
html body button.gj-approved-labelled>.gj-approved-caption{display:inline!important;min-width:0;overflow-wrap:anywhere;pointer-events:none}
@media(max-width:700px){html body button.gj-approved-labelled{max-width:100%!important;padding:10px!important}}

/* Header actions stay compact; primary workflow actions keep their captions. */
.workspace-system #shell>main>header .heading-stack{flex:1 1 180px;min-width:120px}
.workspace-system #shell>main>header .headerActions{flex:0 1 auto;min-width:0;flex-wrap:wrap}
.workspace-system #shell>main>header .headerActions .gj-approved-action{flex:none}
.client-directory-pager{display:flex;gap:12px;align-items:center;justify-content:flex-end;flex-wrap:wrap;margin:16px 0}
.client-directory-pager[hidden]{display:none}
@media(max-width:800px){
 .workspace-system #shell>main>header .heading-stack{min-width:0}
 .workspace-system #shell>main>header .headerActions{flex-wrap:wrap;justify-content:flex-start}
 .client-directory-pager{justify-content:center}
}

.sp-edit-quote-hint{margin:8px 0;padding:10px 12px;border-left:3px solid #d1a249;border-radius:6px;background:#fff6df;color:#715620;font-size:13px}

/* 3.156.369: reserve a full mobile row for the title, independent of theme order. */
@media screen and (max-width:800px){
 html body.workspace-system #shell>main>header{
  display:grid!important;grid-template-columns:44px minmax(0,1fr)!important;
  grid-template-rows:auto auto;align-items:center;gap:8px!important;
  width:100%;max-width:100%;min-width:0;min-height:0!important;
  padding:12px!important;box-sizing:border-box;position:relative;top:auto;
 }
 html body.workspace-system #shell>main>header .heading-stack{
  grid-column:1/-1!important;grid-row:1!important;display:block!important;
  width:100%;max-width:100%;min-width:0!important;flex:none!important;padding:0;
 }
 html body.workspace-system #shell>main>header #pageTitle{
  font-size:18px!important;line-height:1.3!important;margin:0;
  max-width:100%;white-space:normal!important;word-break:normal!important;
  overflow-wrap:break-word;hyphens:none;
 }
 html body.workspace-system #shell>main>header #menuBtn{
  grid-column:1!important;grid-row:2!important;display:inline-flex!important;
  width:44px!important;min-width:44px!important;height:44px!important;padding:9px!important;margin:0;
 }
 html body.workspace-system #shell>main>header .headerActions{
  grid-column:2!important;grid-row:2!important;display:flex!important;flex-flow:row wrap!important;
  align-items:center;justify-content:flex-end!important;gap:6px!important;
  width:100%!important;min-width:0!important;max-width:100%!important;margin:0;
 }
 html body.workspace-system #shell>main>header #gjInstallApp{
  flex:0 0 44px!important;width:44px!important;min-width:44px!important;
  height:44px!important;min-height:44px!important;padding:10px!important;
  display:inline-flex!important;align-items:center;justify-content:center;box-sizing:border-box;
 }
 html body.workspace-system #shell>main>header #gjInstallApp .gj-install-caption{display:none!important}
 html body.workspace-system #shell>main>header #gjInstallApp .gj-install-icon{display:block!important;width:22px;height:22px;flex:none}
 html body.workspace-system #shell>main>header .header-action-label,
 html body.workspace-system #shell>main>header .gj-whatsapp-shortcut-label,
 html body.workspace-system #shell>main>header .bell-caption{display:none!important}
 html body.workspace-system #shell>main>header #role:empty{display:none}
}
@media screen and (max-width:800px){
 /* Optional activity reminder comes after account controls, never between icons. */
 html body.workspace-system #shell>main>header #myWorkAlert{order:99!important;flex:0 0 100%;min-height:32px!important;height:auto!important;white-space:normal;overflow-wrap:break-word}
}
