/* Production Xanh lam – Navy defaults, integrated with the existing color editor.
   R20 owns live website/module colors; this sheet bridges its variables without
   writing saved settings or changing layout, fonts, content, data or permissions.
   AI/success/warning/error roles and accepted raised row actions stay semantic. */
:root {
  --kscp-primary:#2864b7;--kscp-primary-dark:#204f93;--kscp-sidebar:#14283f;
  --kscp-canvas:#f3f6fa;--kscp-surface:#ffffff;--kscp-ink:#21324b;
  --kscp-muted:#607088;--kscp-label:#49617d;--kscp-border:#dce4ef;
  --kscp-soft:#eaf1fc;--kscp-subtle:#f8fafd;--kscp-header:#edf2f9;
  --kscp-focus:#77a6e7;--kscp-side-muted:#a6b4c6;--kscp-side-hover:#203d5c;
}
body.studio-web,body.studio-web :is(#v9-home,.v9-choice,.r20-department) {
  --kscp-primary:var(--r20-a,#2864b7);--kscp-primary-dark:var(--r20-a-text,#204f93);
  --kscp-on-primary:var(--r20-on-a,#ffffff);--kscp-sidebar:var(--r20-sidebar,#14283f);
  --kscp-canvas:var(--r20-bg,#f3f6fa);--kscp-surface:var(--r20-surface,#ffffff);
  --kscp-ink:var(--r20-text,#21324b);--kscp-muted:var(--r20-muted,#607088);
  --kscp-label:var(--r20-muted,#49617d);--kscp-border:var(--r20-border,#dce4ef);
  --kscp-soft:var(--r20-soft,#eaf1fc);
  --kscp-subtle:color-mix(in srgb,var(--r20-bg,#f3f6fa) 40%,var(--r20-surface,#ffffff));
  --kscp-header:color-mix(in srgb,var(--r20-a,#2864b7) 7%,var(--r20-surface,#ffffff));
  --kscp-focus:color-mix(in srgb,var(--r20-a,#2864b7) 65%,var(--r20-surface,#ffffff));
  --kscp-side-muted:color-mix(in srgb,var(--r20-sidebar,#14283f) 28%,#ffffff);
  --kscp-side-hover:color-mix(in srgb,var(--r20-sidebar,#14283f) 80%,var(--r20-brand,#2864b7));
  --kscp-ai:#6d28d9;--kscp-ai-soft:#f4efff;
}
body.studio-web {
  --web-canvas:var(--kscp-canvas)!important;--web-surface:var(--kscp-surface)!important;
  --web-ink:var(--kscp-ink)!important;--web-muted:var(--kscp-muted)!important;
  --web-border:var(--kscp-border)!important;--web-primary:var(--kscp-primary)!important;
  --web-primary-dark:var(--kscp-primary-dark)!important;--web-soft:var(--kscp-soft)!important;
  --web-navy:var(--kscp-sidebar)!important;--ink:var(--kscp-ink)!important;
  --bg:var(--kscp-canvas)!important;--white:var(--kscp-surface)!important;
  --muted:var(--kscp-muted)!important;--border:var(--kscp-border)!important;
  --blue:var(--kscp-primary)!important;--blue2:var(--kscp-soft)!important;
  --v9-navy:var(--kscp-ink)!important;--v9-teal:var(--kscp-primary-dark)!important;
  background:var(--kscp-canvas)!important;color:var(--kscp-ink)!important;
}
/* Workspace frame and navigation. Keep the existing red BOQ/KS brand mark. */
body.studio-web :is(.main,.content,.web-main,#v9-home,#r16-save-strip) {background:var(--kscp-canvas)!important}
body.studio-web :is(.sidebar,.web-nav) {background:var(--kscp-sidebar)!important;color:#edf4fc!important}
body.studio-web :is(.brandmark,.v9-logo-mark,.r20-logo,.web-brand-mark) {background:linear-gradient(140deg,#ed243a,#f15b40)!important;color:#ffffff!important}
body.studio-web :is(.sidebar .brand small,.sidebar .nav-title,.sidebar .v9-mode-name,.web-brand small,.web-nav-section,.web-nav-label,.web-nav-footer) {color:var(--kscp-side-muted)!important}
body.studio-web :is(.sidebar .brand b,.web-brand b,.web-brand strong) {color:#ffffff!important}
body.studio-web :is(.sidebar .navbtn,.web-nav-item) {color:#d5e0eb!important;background:transparent!important;border-color:transparent!important}
body.studio-web :is(.sidebar .navbtn,.web-nav-item):hover:not(.active) {background:var(--kscp-side-hover)!important;color:#ffffff!important}
body.studio-web :is(.sidebar .navbtn.active,.web-nav-item.active) {background:var(--kscp-primary)!important;color:var(--kscp-on-primary,#ffffff)!important;border-color:var(--kscp-primary)!important;box-shadow:inset 3px 0 0 var(--kscp-focus)!important}
body.studio-web .web-nav-item.active svg {color:#ffffff!important}
body.studio-web .v9-home-btn {background:#ffffff0b!important;border-color:#ffffff35!important;color:#e5edf6!important}
body.studio-web :is(.topbar,.web-topbar,.v9-workbar,.v9-home-head) {background:var(--kscp-surface)!important;border-color:var(--kscp-border)!important;color:var(--kscp-ink)!important}
body.studio-web :is(.top-title,.sectiontitle,.card h1,.card h2,.card h3,.web-heading h1,.web-panel-heading h2,.web-metric-value) {color:var(--kscp-ink)!important}
body.studio-web :is(.subtitle,.muted-small,.muted,.smallgrey,.crumb,.web-muted,.web-breadcrumb,.dmv-heading p):not([style*="color"]) {color:var(--kscp-muted)!important}
body.studio-web :is(.tiny-tag,.tag,.web-avatar) {background:var(--kscp-soft)!important;border-color:var(--kscp-border)!important;color:var(--kscp-primary-dark)!important}
body.studio-web :is(.v9-step,.web-tabs button) {color:var(--kscp-muted)!important;background:var(--kscp-surface)!important;border-color:var(--kscp-border)!important}
body.studio-web :is(.v9-step.active,.web-tabs button.active,.flowstep.current) {color:var(--kscp-primary-dark)!important;background:var(--kscp-soft)!important;border-color:var(--kscp-primary)!important;box-shadow:none!important}
body.studio-web :is(.v9-step-card,.card,.web-panel,.web-metric,.web-workflow,.v9-choice) {background:var(--kscp-surface)!important;border-color:var(--kscp-border)!important;color:var(--kscp-ink)!important}
body.studio-web :is(.v9-choice,.v9-panel-hero,.r20-department) {border-top-color:var(--kscp-primary)!important;border-left-color:var(--kscp-primary)!important}
body.studio-web :is(.v9-step-card span,.v9-choice-cta,.v9-kicker,.web-eyebrow,.web-workflow-bottom,.r20-phase) {color:var(--kscp-primary-dark)!important}
body.studio-web :is(.v9-choice-icon,.web-workflow-icon,.web-metric-icon,.web-guide-num) {background:var(--kscp-soft)!important;color:var(--kscp-primary-dark)!important;border-color:var(--kscp-border)!important}

/* Main actions use the selected brand; AI and business states keep their roles. */
body.studio-web :is(.btn.primary,.btn.teal,.web-btn.primary,.r20-center-enter):not(.ai-action):not(.danger):not(.boq-row-action):not(.dmv-row-action):not(.source-row-action):not([data-inline-save]):not([data-dmv-action="save"]):not([data-source-action="save"]):not([data-tabs-save]):not([data-dmv-drawer-save]):not(.boq-safe-approve):not([onclick^="approve"]):not([onclick^="r13safe"]):not([onclick^="r19safe"]) {background:var(--kscp-primary)!important;border-color:var(--kscp-primary)!important;color:var(--kscp-on-primary,#ffffff)!important}
body.studio-web :is(.btn.primary,.btn.teal,.web-btn.primary,.r20-center-enter):not(.ai-action):not(.danger):not(.boq-row-action):not(.dmv-row-action):not(.source-row-action):not([data-inline-save]):not([data-dmv-action="save"]):not([data-source-action="save"]):not([data-tabs-save]):not([data-dmv-drawer-save]):not(.boq-safe-approve):not([onclick^="approve"]):not([onclick^="r13safe"]):not([onclick^="r19safe"]):enabled:hover {background:var(--kscp-primary-dark)!important;border-color:var(--kscp-primary-dark)!important}
body.studio-web :is(.btn,.web-btn):not(.primary):not(.teal):not(.danger):not(.learn):not(.ai-action):not(.ai-secondary):not(.boq-row-action):not(.dmv-row-action):not(.source-row-action):not([data-inline-save]):not([data-dmv-action="save"]):not([data-source-action="save"]):not([data-tabs-save]):not([data-dmv-drawer-save]):not([data-inline-save]) {background:var(--kscp-surface)!important;color:var(--kscp-label)!important;border-color:var(--kscp-border)!important}
body.studio-web :is(.link,.web-link,.btn.text):not(.danger) {color:var(--kscp-primary-dark)!important}
body.studio-web .ai-secondary {background:var(--kscp-ai-soft)!important;border-color:#dfd2f1!important;color:#684399!important}
body.studio-web :is(.ai-action,.btn.ai-action) {background:var(--kscp-ai)!important;border-color:var(--kscp-ai)!important;color:#ffffff!important}
body.studio-web :is(.boq-safe-approve,button[onclick^="approve"],button[onclick^="r13safe"],button[onclick^="r19safe"]) {background:#168253!important;border-color:#168253!important;color:#ffffff!important}
body.studio-web :is(.boq-safe-approve,button[onclick^="approve"],button[onclick^="r13safe"],button[onclick^="r19safe"]):enabled:hover {background:#116b43!important;border-color:#116b43!important}
body.studio-web :is(.btn.danger,.boq-tab-warning,.dmv-warning,.pill.ok,.pill.warn,.pill.err,.is-error,.boq-tab-compare) { /* Existing semantic rules intentionally remain authoritative. */ }

/* Forms, long tables and the accepted raised row actions keep identical geometry. */
body.studio-web :is(.input,.select,.textarea,.boq-inline-input,.dmv-cell-input) {background:var(--kscp-surface)!important;color:var(--kscp-ink)!important}
body.studio-web :is(.input,.select,.textarea,.boq-inline-input,.dmv-cell-input):not([aria-invalid="true"]) {border-color:var(--kscp-border)!important}
body.studio-web :is(.input,.select,.textarea,.boq-inline-input,.dmv-cell-input):focus:not([aria-invalid="true"]) {border-color:var(--kscp-primary)!important;box-shadow:0 0 0 3px var(--kscp-soft)!important}
body.studio-web :is(.input,.select,.textarea,.boq-inline-input,.dmv-cell-input):disabled {background:var(--kscp-subtle)!important;color:var(--kscp-muted)!important}
body.studio-web :is(.field label,.form-grid label,.dmv-tab-current label,.dmv-shared-note label,.boq-detail-tabpanel label) {color:var(--kscp-label)!important}
body.studio-web :is(button,a,input,select,textarea,summary):focus-visible {outline-color:var(--kscp-focus)!important}
body.studio-web :is(.upload,.dmv-source,.source-boq-source) {background:var(--kscp-subtle)!important;border-color:var(--kscp-border)!important}
body.studio-web :is(.note,.reference-banner):not(.is-error):not(.warn):not(.warning):not(.error) {background:var(--kscp-subtle)!important;border-color:var(--kscp-border)!important;color:var(--kscp-label)!important}
body.studio-web :is(.table-scroll,.dmv-table-scroll,.source-boq-table-scroll) {border-color:var(--kscp-border)!important}
body.studio-web table {color:var(--kscp-ink)!important;background:var(--kscp-surface)!important}
body.studio-web :is(thead,th) {background:var(--kscp-header)!important;color:var(--kscp-label)!important;border-color:var(--kscp-border)!important}
body.studio-web td {border-bottom-color:var(--kscp-border)!important}
body.studio-web tr.selected>td {background:var(--kscp-soft)!important}
body.studio-web tr:not(.selected):not(.error):not(.err):hover>td {background:var(--kscp-subtle)!important}
body.studio-web #normalize-table td:nth-child(2).desc>.link {color:var(--kscp-ink)!important}
body.studio-web :is(.boq-inline-actions-cell,.dmv-actions) {background:var(--kscp-surface)!important}

/* Detail drawers and tab selection use the same brand as their workspace. */
body.studio-web :is(dialog,.boq-detail-drawer,.dmv-drawer,.source-boq-detail) {background:var(--kscp-surface)!important;color:var(--kscp-ink)!important;border-color:var(--kscp-border)!important}
body.studio-web :is(.boq-drawer-head,.dmv-drawer>header,.dmv-drawer footer,.boq-detail-tabs-footer,.source-boq-detail>header,.source-boq-detail>footer) {background:var(--kscp-surface)!important;border-color:var(--kscp-border)!important}
body.studio-web :is(.boq-detail-tablist,.dmv-detail-tablist) {background:var(--kscp-surface)!important;border-color:var(--kscp-border)!important}
body.studio-web :is(.boq-detail-tab,.dmv-detail-tab) {background:var(--kscp-subtle)!important;color:var(--kscp-muted)!important}
body.studio-web :is(.boq-detail-tab,.dmv-detail-tab)[aria-selected="true"] {background:var(--kscp-soft)!important;color:var(--kscp-primary-dark)!important;border-bottom-color:var(--kscp-primary)!important}
body.studio-web :is(.boq-tab-source,.dmv-tab-source,.dmv-detail-provenance,.panel-block.source) {background:var(--kscp-subtle)!important;border-color:var(--kscp-border)!important;color:var(--kscp-ink)!important}
body.studio-web .boq-tab-evidence {background:var(--kscp-soft)!important;border-color:var(--kscp-border)!important;color:var(--kscp-ink)!important}
body.studio-web :is(.dmv-detail-more,.dmv-shared-note,.boq-tab-unit,.boq-tab-provenance) {border-color:var(--kscp-border)!important}

/* The Center is themed too; no workflow cards, spacing or content are replaced. */
body.studio-web #r20-center {
  --hub-bg:var(--kscp-canvas)!important;--hub-surface:var(--kscp-surface)!important;
  --hub-ink:var(--kscp-ink)!important;--hub-muted:var(--kscp-muted)!important;
  --hub-border:var(--kscp-border)!important;--hub-brand:var(--kscp-primary)!important;
  --hub-accent:var(--kscp-primary-dark)!important;--hub-soft:var(--kscp-soft)!important;
  background:var(--kscp-canvas)!important;color:var(--kscp-ink)!important;
}
body.studio-web #r20-center :is(.r20-center-header,.r20-department,.r20-common-card,.hub-admin-menu,.hub-admin>summary,.hub-search) {background:var(--kscp-surface)!important;border-color:var(--kscp-border)!important;color:var(--kscp-ink)!important}
body.studio-web #r20-center :is(.r20-identity b,.r20-hero h1,.r20-dept-copy h2,.r20-section-head h2,.r20-common-card h3) {color:var(--kscp-ink)!important}
body.studio-web #r20-center :is(.r20-hero p,.r20-dept-copy p,.r20-identity small,.r20-section-head>span,.r20-foot) {color:var(--kscp-muted)!important}
body.studio-web #r20-center :is(.r20-eyebrow,.r20-phase) {color:var(--kscp-primary-dark)!important}
body.studio-web #r20-center .r20-department {border-left-color:var(--kscp-primary)!important}
body.studio-web #r20-center .r20-center-enter {background:var(--kscp-primary)!important;color:var(--kscp-on-primary,#ffffff)!important;border-color:var(--kscp-primary)!important}
body.studio-web #r20-center .r20-center-enter:hover {background:var(--kscp-primary-dark)!important;border-color:var(--kscp-primary-dark)!important}
body.studio-web #r20-center .hub-admin-menu button:hover {background:var(--kscp-soft)!important;color:var(--kscp-primary-dark)!important}
body.studio-web :is(.web-admin-menu,.hub-admin) {--admin-accent:var(--kscp-primary-dark)!important;--admin-soft:var(--kscp-soft)!important;--admin-ink:var(--kscp-ink)!important;--admin-muted:var(--kscp-muted)!important;--admin-border:var(--kscp-border)!important;--admin-surface:var(--kscp-surface)!important}

/* Native Save controls retain green; accepted raised row-action capsules keep
   their own soft green/purple/blue/red component rules. */
body.studio-web :is([data-inline-save],[data-dmv-action="save"],[data-source-action="save"],[data-tabs-save],[data-dmv-drawer-save],.r20-save):not(.boq-row-action):not(.dmv-row-action):not(.source-row-action):not(:disabled){background:#17975a!important;border-color:#17975a!important;color:#ffffff!important}

/* Account/admin surfaces use the live website palette. Destructive actions,
   account-state badges, validation messages and audit meanings stay unchanged. */
body.studio-web :is(.auth-account-menu,.auth-account-menu summary,.auth-account-panel,.auth-dialog,.auth-user-editor){color:var(--kscp-ink)!important;border-color:var(--kscp-border)!important}
body.studio-web :is(.auth-account-menu summary,.auth-account-panel,.auth-dialog header,.auth-dialog nav,.auth-user-editor){background:var(--kscp-surface)!important}
body.studio-web :is(.auth-avatar,.auth-current-tag){background:var(--kscp-soft)!important;color:var(--kscp-primary-dark)!important}
body.studio-web :is(.auth-account-copy small,.auth-account-panel p,.auth-dialog header p,.auth-dialog td small,.auth-form-caption,.auth-grant-note,.auth-empty){color:var(--kscp-muted)!important}
body.studio-web .auth-account-panel :is(button,a):not(.auth-logout){color:var(--kscp-label)!important}
body.studio-web .auth-account-panel :is(button,a):hover{background:var(--kscp-soft)!important}
body.studio-web .auth-dialog :is(h2,h3,td strong){color:var(--kscp-ink)!important}
body.studio-web .auth-dialog .auth-button:not(.auth-button-primary):not(.auth-button-danger):not(.auth-delete-submit){background:var(--kscp-surface)!important;color:var(--kscp-label)!important;border-color:var(--kscp-border)!important}
body.studio-web .auth-dialog .auth-button-primary:not(.auth-button-danger):not(.auth-delete-submit){background:var(--kscp-primary)!important;border-color:var(--kscp-primary)!important;color:var(--kscp-on-primary,#ffffff)!important}
body.studio-web .auth-dialog nav button[aria-selected="true"]{color:var(--kscp-primary-dark)!important;border-bottom-color:var(--kscp-primary)!important}
body.studio-web .auth-dialog :is(.auth-search,.auth-field input,.auth-field select,.auth-field textarea){background:var(--kscp-surface)!important;color:var(--kscp-ink)!important;border-color:var(--kscp-border)!important}
body.studio-web .auth-dialog :is(input,select,textarea):focus{outline-color:var(--kscp-focus)!important}
body.studio-web .auth-dialog input[type="checkbox"]{accent-color:var(--kscp-primary)}

/* Anonymous landing/login and its admin preview share dynamic public variables.
   JavaScript applies saved custom colors normally; these are only fallbacks. */
.kscp-public-page{--public-background:#14283f;--public-ink:#edf4fc;--public-muted:#c3d0df;--public-highlight:#a8c9f4;--public-accent:#2864b7;--public-card:#ffffff;--public-card-ink:#21324b;--public-card-muted:#607088;--public-border:#dce4ef}
body.kscp-auth-page{background:var(--public-page-canvas,#14283f);color:#edf4fc}
:root:has(>body.kscp-auth-page){background:var(--public-page-canvas,#14283f)}
body .kscp-public-page .public-logo{background:linear-gradient(140deg,#ed243a,#f15b40)!important;color:#ffffff!important;border-color:#f15b40!important}
body .kscp-public-page .public-intro h1{color:var(--public-ink)!important}
body .kscp-public-page .public-sections{background:var(--public-card)!important}
body .kscp-public-page .public-section-heading>span{color:var(--public-card-muted)!important}
body .kscp-public-page .public-section-heading h2{color:var(--public-card-ink)!important}
body .kscp-public-page .auth-card :is(h2,label){color:var(--public-card-ink)!important}
body .kscp-public-page #password-submit:not(:disabled){background:#17975a!important;border-color:#17975a!important;color:#ffffff!important}

/* All four BOQ toolbar items participate in layout; never let action buttons
   overflow a shrunken cluster or let Add row cover the export controls. */
body.studio-web #view-normalize .boq-action-row{display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:flex-start;gap:14px 18px}
body.studio-web #view-normalize .boq-action-cluster{flex:0 1 auto;min-width:0;max-width:100%}
body.studio-web #view-normalize .boq-action-group{flex-wrap:wrap;min-width:0;max-width:100%}
body.studio-web #view-normalize .boq-row-toolbar{position:static;flex:0 0 auto;align-self:flex-end;max-width:100%;margin-left:auto}
body.studio-web #view-normalize .boq-row-toolbar .btn{flex:none;min-width:max-content;white-space:nowrap}
@container boq-toolbar (max-width:1320px){
  body.studio-web #view-normalize .boq-action-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"process compare" "review rows";align-items:start}
  body.studio-web #view-normalize .boq-action-cluster:first-child{grid-area:process}
  body.studio-web #view-normalize .boq-comparison-cluster{grid-area:compare}
  body.studio-web #view-normalize .boq-review-cluster{grid-area:review;border-left:0;padding-left:0;align-items:flex-start}
  body.studio-web #view-normalize .boq-row-toolbar{grid-area:rows;justify-self:end;align-self:end;margin-left:0}
}
@container boq-toolbar (max-width:700px){
  body.studio-web #view-normalize .boq-action-row{grid-template-columns:minmax(0,1fr);grid-template-areas:"process" "compare" "review" "rows"}
  body.studio-web #view-normalize .boq-comparison-cluster{border-left:0;padding-left:0}
  body.studio-web #view-normalize .boq-row-toolbar{justify-self:start}
}

/* 2.1.19: the three working tables share compact, always-visible vertical actions.
   Leave Description flexible, so extra table width never widens the action column. */
body.studio-web #view-normalize table:has(>tbody#normalize-table),
body.studio-web #source-boq-workspace .source-boq-table>table,
body.studio-web #view-dmvlht .dmv-table-scroll>table{width:100%!important;table-layout:fixed!important;border-collapse:collapse!important}
body.studio-web #view-normalize table:has(>tbody#normalize-table){min-width:1384px!important}
body.studio-web #source-boq-workspace .source-boq-table>table{min-width:1315px!important}
body.studio-web #view-dmvlht .dmv-table-scroll>table{min-width:1210px!important}
body.studio-web #view-normalize table:has(>tbody#normalize-table) :is(th,td),
body.studio-web #source-boq-workspace .source-boq-table>table :is(th,td),
body.studio-web #view-dmvlht .dmv-table-scroll>table :is(th,td){box-sizing:border-box!important;min-width:0!important;max-width:none!important;padding:9px 7px;font-size:12px;overflow-wrap:anywhere;white-space:normal}
body.studio-web #view-normalize table:has(>tbody#normalize-table) th,
body.studio-web #source-boq-workspace .source-boq-table>table th,
body.studio-web #view-dmvlht .dmv-table-scroll>table th{padding:10px 7px!important;line-height:1.35!important;font-size:11px!important;white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important}
body.studio-web #view-normalize table:has(>tbody#normalize-table) th:nth-child(1){width:44px!important}
body.studio-web #view-normalize table:has(>tbody#normalize-table) th:nth-child(2){width:auto!important}
body.studio-web #view-normalize table:has(>tbody#normalize-table) th:nth-child(3){width:155px!important}
body.studio-web #view-normalize table:has(>tbody#normalize-table) th:nth-child(4){width:170px!important}
body.studio-web #view-normalize table:has(>tbody#normalize-table) th:nth-child(5){width:90px!important}
body.studio-web #view-normalize table:has(>tbody#normalize-table) th:nth-child(6){width:70px!important}
body.studio-web #view-normalize table:has(>tbody#normalize-table) th:is(:nth-child(7),:nth-child(8)){width:58px!important}
body.studio-web #view-normalize table:has(>tbody#normalize-table) th:is(:nth-child(9),:nth-child(10)){width:88px!important}
body.studio-web #view-normalize table:has(>tbody#normalize-table) th:nth-child(11){width:185px!important}
body.studio-web #view-normalize table:has(>tbody#normalize-table) th:nth-child(12){width:125px!important}
body.studio-web #source-boq-workspace .source-boq-table th:nth-child(1){width:52px!important}
body.studio-web #source-boq-workspace .source-boq-table th:nth-child(2){width:auto!important}
body.studio-web #source-boq-workspace .source-boq-table th:nth-child(3){width:260px!important}
body.studio-web #source-boq-workspace .source-boq-table th:nth-child(4){width:130px!important}
body.studio-web #source-boq-workspace .source-boq-table th:nth-child(5){width:110px!important}
body.studio-web #source-boq-workspace .source-boq-table th:nth-child(6){width:80px!important}
body.studio-web #source-boq-workspace .source-boq-table th:nth-child(7){width:125px!important}
body.studio-web #source-boq-workspace .source-boq-table th:nth-child(8){width:200px!important}
body.studio-web #view-dmvlht .dmv-table-scroll th:nth-child(1){width:52px!important}
body.studio-web #view-dmvlht .dmv-table-scroll th:nth-child(2){width:auto!important}
body.studio-web #view-dmvlht .dmv-table-scroll th:nth-child(3){width:290px!important}
body.studio-web #view-dmvlht .dmv-table-scroll th:nth-child(4){width:155px!important}
body.studio-web #view-dmvlht .dmv-table-scroll th:nth-child(5){width:125px!important}
body.studio-web #view-dmvlht .dmv-table-scroll th:nth-child(6){width:220px!important}
body.studio-web #normalize-table td:first-child,
body.studio-web #normalize-table td:is(:nth-child(9),:nth-child(10)),
body.studio-web #source-boq-workspace .source-boq-table td:is(:first-child,:nth-child(7)),
body.studio-web #view-dmvlht .dmv-table-scroll td:first-child{white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important;font-variant-numeric:tabular-nums;font-size:11px!important}
body.studio-web #normalize-table td:nth-child(11),
body.studio-web #source-boq-workspace [data-source-cell="note"],
body.studio-web #view-dmvlht [data-dmv-cell="note"]{white-space:pre-wrap!important;overflow-wrap:anywhere!important;line-height:1.5!important}
body.studio-web #view-dmvlht [data-dmv-cell="note"]>span{display:block!important;-webkit-line-clamp:unset!important;max-height:none!important;overflow:visible!important}
body.studio-web #normalize-table .boq-inline-input{min-width:0!important}
body.studio-web #normalize-table .boq-row-role{max-width:100%;min-width:0}
body.studio-web #view-normalize th[data-inline-action-heading],
body.studio-web #normalize-table .boq-inline-actions-cell,
body.studio-web #source-boq-workspace .source-boq-table th:last-child,
body.studio-web #source-boq-workspace .source-boq-actions,
body.studio-web #view-dmvlht .dmv-table-scroll th:last-child,
body.studio-web #view-dmvlht .dmv-actions{position:sticky!important;right:0!important;min-width:108px!important;max-width:108px!important;width:108px!important;box-sizing:border-box!important;border-left:1px solid var(--kscp-border)!important;text-align:center!important;box-shadow:-7px 0 11px -10px #64748b55!important}
body.studio-web #view-normalize th[data-inline-action-heading],
body.studio-web #source-boq-workspace .source-boq-table th:last-child,
body.studio-web #view-dmvlht .dmv-table-scroll th:last-child{top:0!important;z-index:5!important;background:var(--kscp-header)!important;white-space:nowrap!important;padding:10px 5px!important}
body.studio-web #normalize-table .boq-inline-actions-cell,
body.studio-web #source-boq-workspace .source-boq-actions,
body.studio-web #view-dmvlht .dmv-actions{z-index:2!important;padding:7px 5px!important;vertical-align:middle!important;background:var(--kscp-surface)!important}
body.studio-web #normalize-table .boq-inline-actions,
body.studio-web #source-boq-workspace .source-row-actions,
body.studio-web #view-dmvlht .dmv-row-actions{display:inline-flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:center!important;flex-wrap:nowrap!important;gap:3px!important;width:88px!important;max-width:100%!important;padding:4px!important;box-sizing:border-box!important;border:1px solid var(--kscp-border)!important;border-radius:10px!important;background:var(--kscp-surface)!important;box-shadow:0 2px 6px #33415516,0 6px 14px #33415508!important;opacity:1!important;visibility:visible!important;white-space:normal!important}
body.studio-web #normalize-table .boq-inline-actions>.boq-row-action,
body.studio-web #source-boq-workspace .source-row-actions>.source-row-action,
body.studio-web #view-dmvlht .dmv-row-actions>.dmv-row-action{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:5px!important;width:100%!important;min-width:0!important;height:26px!important;min-height:26px!important;max-height:26px!important;margin:0!important;padding:4px 7px!important;box-sizing:border-box!important;border:1px solid transparent;border-radius:6px!important;box-shadow:none!important;font:600 11px/1.1 "Segoe UI",Arial,sans-serif!important;white-space:nowrap!important;text-decoration:none!important;visibility:visible!important;cursor:pointer;transform:none!important}
body.studio-web #source-boq-workspace .source-row-action svg{display:block;width:13px;height:13px;flex:none;pointer-events:none}
body.studio-web #source-boq-workspace .source-row-action span{pointer-events:none}
body.studio-web #source-boq-workspace .source-row-actions>.source-row-action-edit{background:#f7f2fd!important;border-color:#e8def5!important;color:#7046a3!important}
body.studio-web #source-boq-workspace .source-row-actions>.source-row-action-detail{background:#f0f7fd!important;border-color:#dce9f6!important;color:#326c9b!important}
body.studio-web #source-boq-workspace .source-row-actions>.source-row-action-delete{background:#fff4f5!important;border-color:#f0dce0!important;color:#b14c56!important}
body.studio-web #source-boq-workspace .source-row-actions>.source-row-action-save{background:#edf9f2!important;border-color:#d5e9df!important;color:#28714d!important}
body.studio-web #source-boq-workspace .source-row-actions>.source-row-action-cancel{background:#f8fafc!important;border-color:#e2e8f0!important;color:#64748b!important}
body.studio-web #normalize-table .boq-row-action:enabled:hover,
body.studio-web #source-boq-workspace .source-row-action:enabled:hover,
body.studio-web #view-dmvlht .dmv-row-action:enabled:hover{filter:brightness(.97)}
body.studio-web #source-boq-workspace .source-row-action:focus-visible{outline:2px solid var(--kscp-focus);outline-offset:1px}
body.studio-web #source-boq-workspace .source-row-action:disabled{opacity:.48!important;cursor:not-allowed!important}
body.studio-web #normalize-table .boq-inline-actions-cell>small{white-space:normal!important}
