/* One action size across catalogs and directories; captions remain accessible. */
.boq-action {display:inline-flex;align-items:center;justify-content:center;gap:7px;}
.boq-action .icon {width:var(--boq-icon-action,18px);height:var(--boq-icon-action,18px);flex:0 0 var(--boq-icon-action,18px);}
.boq-action-compact {position:relative;min-width:var(--boq-control-toolbar,40px);min-height:var(--boq-control-toolbar,40px);padding:8px!important;border-radius:var(--radius,0);}
.boq-action-compact .boq-action-label {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0;}
.boq-action-compact:focus-visible {outline:2px solid var(--teal);outline-offset:2px;}
.boq-table-columns > summary.boq-action-compact {list-style:none;cursor:pointer;}
.boq-table-columns > summary.boq-action-compact::-webkit-details-marker {display:none;}
.boq-table-columns[open] > summary.boq-action-compact {color:var(--teal);border-color:var(--teal);}
@media (prefers-reduced-motion:no-preference){.boq-action-compact {transition:background-color .12s ease,border-color .12s ease;}}
@media print {.boq-table-columns,.boq-action-compact {display:none!important;}}
/* A task panel is a separate module, not the first row of a data table. The
   common event/form owner is retained: only visual surfaces are separated. */
@media screen {
  html[data-theme] .boq-task-panel {display:flex;align-items:center;flex-wrap:nowrap;gap:6px;min-width:0;min-height:48px;padding:8px 10px;background:var(--white);border:1px solid var(--line);border-radius:0;overflow:visible;position:relative;z-index:8;}
  html[data-theme] .panel.boq-detached-table-panel {border:0;background:transparent;box-shadow:none;overflow:visible;}
  html[data-theme] .boq-detached-table-panel>.boq-task-panel {margin-bottom:8px;border:1px solid var(--line);}
  html[data-theme] .boq-detached-table-panel>.table-wrap {background:var(--white);border:1px solid var(--line);}
  html[data-theme] .boq-sandbox-scope-panel {flex:none;min-width:0;margin-bottom:8px;}
  html[data-theme] .p7-sandbox-tools.boq-task-panel>.boq-directory-search {flex:1 1 240px;min-width:0;max-width:none;}
  html[data-theme] .p7-sandbox-tools.boq-task-panel>.boq-directory-search input {min-width:0;width:100%;}
  html[data-theme] .p7-sandbox-tools.boq-task-panel .boq-directory-popup>.page-actions {display:grid;gap:4px;min-width:0;}
  html[data-theme] .boq-task-panel>:is(button,a,details)>summary,
  html[data-theme] .boq-task-panel>:is(button,a),
  html[data-theme] .boq-task-panel>.boq-mobile-taskbar-actions>:is(button,a,details)>summary,
  html[data-theme] .boq-task-panel>.boq-mobile-taskbar-actions>:is(button,a) {touch-action:pan-y;cursor:grab;}
  .boq-task-source {opacity:.45;}
  .boq-task-target {box-shadow:inset 3px 0 var(--teal)!important;}
  .boq-task-dragging,.boq-task-dragging * {cursor:grabbing!important;user-select:none!important;}
  .boq-task-ghost {position:fixed;z-index:10040;pointer-events:none;max-width:240px;padding:8px 12px;border:1px solid var(--teal);border-radius:0;background:var(--white);color:var(--ink);box-shadow:var(--shadow);font:600 12px/1.4 var(--font-family,Roboto,sans-serif);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
  /* High specificity intentionally overrides legacy route/mobile dropdown
     offsets. Coordinates are measured in JS and never inferred from a table. */
  html[data-theme] .boq-anchored-menu.boq-menu-positioned,
  html[data-theme] .boq-anchored-menu.boq-menu-positioned:popover-open {position:fixed!important;z-index:10030!important;inset:auto;display:grid;margin:0!important;box-sizing:border-box;min-width:min(190px,var(--boq-menu-max-width,calc(100vw - 16px)))!important;max-width:var(--boq-menu-max-width,calc(100vw - 16px))!important;overflow:auto!important;overscroll-behavior:contain;overflow-wrap:anywhere;border:1px solid var(--line);border-radius:0;background:var(--white);color:var(--ink);box-shadow:var(--shadow);}
  html[data-theme] .boq-anchored-menu.boq-menu-positioned>* {min-width:0;max-width:100%;}
  /* The toolbar may be icon-only; an opened menu must never be a column of
     unexplained icons. This applies beyond tables (forecasts, CRM and SSR). */
  html[data-theme] .boq-anchored-menu .boq-menu-action {display:flex;position:relative;align-items:center;justify-content:flex-start!important;gap:8px;width:100%!important;height:auto!important;min-width:0!important;min-height:32px!important;padding:6px 8px!important;text-align:left;white-space:normal;font-size:var(--boq-font-control,12px);}
  html[data-theme] .boq-anchored-menu .boq-menu-action>.icon {flex:none;width:18px;height:18px;}
  html[data-theme] .boq-anchored-menu .boq-menu-action>.boq-action-label {position:static;width:auto;height:auto;padding:0;margin:0;overflow:visible;clip-path:none;white-space:normal;border:0;}
  html[data-theme] .boq-anchored-menu.boq-menu-positioned :is(.field,.filter-grid,.list-filter,.boq-filter-control) {min-width:0;max-width:100%;}
  html[data-theme] .boq-anchored-menu::backdrop {background:transparent;}
  html[data-theme] details:not([open])>.boq-anchored-menu,
  html[data-theme] .boq-anchored-menu[hidden],
  html[data-theme] .boq-anchored-menu[popover]:not(:popover-open) {display:none!important;}
}
@media screen and (max-width:767px), screen and (max-width:991px) and (hover:none) and (pointer:coarse) {
  html[data-theme] .boq-task-panel {flex-wrap:wrap;gap:4px;padding:6px;}
  html[data-theme] .boq-task-panel>:is(.search,.boq-directory-search) {flex:1 1 100%;min-width:0;}
  html[data-theme] .boq-task-panel :is(.icon-btn,summary.boq-action-compact,.boq-action-compact) {min-width:44px;min-height:44px;}
  html[data-theme] .boq-anchored-menu .boq-menu-action {min-height:44px!important;font-size:14px;}
}
@media print {.boq-task-panel,.boq-anchored-menu,.boq-task-ghost {display:none!important;}}
