/* UI EXPERIMENTAL B / PRUEBA LOCAL / NO PRODUCCIÓN. Loaded after the approved base. */
@media screen {
:root {
  --b-blue:#2559aa; --b-deep:#18263e; --b-surface:#fff; --b-bg:#f3f5f8;
  --b-line:#d9e0e9; --b-muted:#5f6b7d; --b-accent:#eaf0fa;
  --lab-brand:var(--b-blue); --lab-brand-dark:#193d77; --lab-accent:var(--b-accent);
  --lab-bg:var(--b-bg); --lab-ink:#1f2d43; --lab-muted:var(--b-muted); --lab-line:var(--b-line);
  --lab-radius:8px; --lab-radius-sm:5px; --lab-shadow:none; --lab-title:20px;
}
body {background:var(--b-bg)}
button {transition:none;letter-spacing:0}
button.primary {background:var(--b-blue);border-color:var(--b-blue)}
button.secondary:hover:not(:disabled) {background:var(--b-accent);border-color:var(--b-blue)}
:is(button,input,select,textarea,summary):focus-visible {outline:3px solid #3674cd;outline-offset:2px}
.card {box-shadow:none;border:1px solid var(--b-line);border-radius:8px;padding:16px;margin-bottom:12px}
.cardHead {margin-bottom:10px;gap:10px}
.cardHead:empty {display:none}
.lab-help {margin:0 0 8px;font-size:11px}
.lab-help>summary {min-height:26px;padding:4px 0}
.lab-help[open] {border-left-color:var(--b-blue);background:#f2f5fb}
.inlineMessage {font-size:12px;padding:9px 11px}
.inlineMessage:empty {padding:0;margin:0}
.securityNote {font-size:12px;line-height:1.45}
.b-overline,.b-task-heading {font-size:11px;letter-spacing:.065em;text-transform:uppercase;font-weight:750;color:var(--b-muted)}

/* One global line, with infrequent account operations behind an explicit menu. */
#appShell>header {background:var(--b-deep);min-height:58px;padding:7px 16px;flex-wrap:nowrap;gap:12px}
#appShell>header h1 {font-size:15px;font-weight:650;color:#fff;white-space:nowrap}
.appBrand {min-width:0;gap:12px;flex:0 1 auto}
.appBrandLogo {width:92px;max-height:31px}
.appBrandLogoWrap {padding:3px 5px;border-radius:4px}
.appModuleTitle {min-width:0}
.lab-version {font-size:9px;line-height:1.3;background:#ffedbc;color:#654800;border:0;padding:2px 6px;border-radius:3px;letter-spacing:.035em}
.headright {margin-left:auto;gap:10px;flex-wrap:nowrap;width:auto}
.headright .headerBtn {border-radius:5px}
#empresaBadge {font-size:11px;max-width:200px;color:#e4ebf6}
.b-account-menu {position:relative;flex-shrink:0;font-size:12px}
.b-account-menu>summary {list-style:none;display:flex;align-items:center;gap:10px;min-height:38px;padding:7px 10px;border:1px solid #62728c;border-radius:5px;cursor:pointer;color:#fff;white-space:nowrap}
.b-account-menu>summary::after {content:'⌄';font-size:14px}
.b-account-menu[open]>summary {background:#2e4261}
.b-account-panel {position:absolute;right:0;top:calc(100% + 8px);width:280px;max-width:calc(100vw - 24px);padding:16px;background:white;color:#1f2d43;border:1px solid var(--b-line);border-radius:8px;box-shadow:0 12px 35px #18263e30;z-index:120;display:grid;gap:9px}
.b-account-panel .b-overline {margin:0}
.b-account-panel #usuarioBadge,.b-account-panel #proyectoBadge {display:block;max-width:none;white-space:normal;background:transparent;color:#263854;padding:0;font-size:13px}
.b-account-panel .headerBtn {color:#263854;border-color:var(--b-line);background:#f7f9fc;text-align:left;width:100%;min-height:40px}
.b-account-panel .headerBtn:hover {background:var(--b-accent);color:#193d77}

/* The compact rail keeps module changes within one click. Expanded labels remain available. */
.erpWorkspace {background:var(--b-bg)}
#moduleSidebar {width:206px;flex-basis:206px;padding:12px 8px;background:#fff;border-right:1px solid var(--b-line);overflow-y:auto;overflow-x:hidden;transition:none}
.moduleSidebarTitle {padding:0 6px 10px;margin-bottom:9px}
.moduleSidebarTitle strong {font-size:14px}
.moduleSidebarEyebrow {font-size:9px}
.moduleSidebarDivider {font-size:9px;padding:12px 8px 5px;letter-spacing:.09em}
.moduleSideButton {min-height:54px;border-radius:6px;padding:9px 7px;gap:8px;margin:3px 0;background:transparent}
.moduleSideButton strong {font-size:12px;line-height:1.3}
.moduleSideButton small {font-size:10px}
.moduleIcon {background:#eef2f8!important;color:var(--b-blue);width:32px;height:32px}
.moduleSideButton.active {background:var(--b-accent);border-color:#c8d8f1;box-shadow:inset 3px 0 var(--b-blue)}
.moduleSideButton.active strong {color:#193d77}
html:not([data-b-screen=home]) #moduleHomeBtn.active {background:transparent;border-color:transparent;box-shadow:none}
.b-nav-short {display:none}
.moduleChevron {font-size:11px}
#moduleContextBar {min-height:67px;padding:10px 18px;gap:12px;flex-wrap:nowrap;border-bottom:1px solid var(--b-line);background:#fff;align-items:center}
#moduleContextBar>div:first-child {min-width:0;flex:1 1 auto}
.moduleContextEyebrow {font-size:9px;letter-spacing:.08em}
#moduleContextTitle {font-size:16px;line-height:1.3}
.lab-context-icon {display:none}
.lab-section-line {font-size:11px;margin-top:2px}
.moduleContextActions {margin-left:auto;max-width:30%;flex-shrink:1}
.moduleContextStatus {font-size:10px;padding:5px 8px;border-radius:4px;white-space:normal;line-height:1.35}
.lab-shell-tools {gap:5px;flex-wrap:nowrap;flex:0 0 auto}
.lab-shell-tools button {font-size:10px;padding:4px 7px;white-space:nowrap;min-height:32px}
.b-section-dock {flex:0 0 auto;border-bottom:1px solid var(--b-line);background:#fff;padding:0 14px}
.b-section-dock:not(:has(.moduleSubmenu:not([hidden]))) {display:none}
.b-section-dock .moduleSubmenu {display:flex;gap:4px;align-items:center;overflow-x:auto;overflow-y:hidden;max-width:100%;margin:0;padding:4px 0 6px;border:0;scrollbar-width:thin}
.b-section-dock .moduleSubmenuContext {font-size:10px;max-width:125px;min-width:100px;flex:0 0 auto;padding:4px 8px;border-right:1px solid var(--b-line)}
.b-section-dock .moduleSubmenuButton {flex:0 0 auto;width:auto;min-height:36px;padding:7px 10px;border-radius:5px;white-space:nowrap;background:transparent;color:#4e6077;box-shadow:none}
.b-section-dock .moduleSubmenuButton>span {display:none}
.b-section-dock .moduleSubmenuButton strong {font-size:12px;font-weight:600}
.b-section-dock .moduleSubmenuButton.active {background:var(--b-accent);color:#193d77;border:1px solid #c7d8f3;box-shadow:inset 0 -2px var(--b-blue)}
.moduleWorkspace main {padding:12px 16px}
.sectionSubnav {padding:0 0 5px;border-radius:0;border-bottom:1px solid var(--b-line);background:transparent;gap:3px;margin-bottom:12px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin}
.sectionSubnav button {min-height:36px;flex:0 0 auto;border-radius:4px;padding:7px 11px;font-size:12px}
.sectionSubnav button.active {background:#e8eef8;color:#193d77;box-shadow:inset 0 -2px var(--b-blue)}

/* The home screen is an operational directory; original cards remain the clickable controls. */
.moduleLandingHero {padding:16px 18px;margin-bottom:12px;gap:20px;align-items:center}
.moduleLandingHero h2 {font-size:20px;margin:3px 0 6px}
.moduleLandingHero .moduleLandingKicker {font-size:9px;color:#627089;letter-spacing:.12em}
.moduleLandingHero p {font-size:12px;line-height:1.5;margin:0;max-width:86ch}
.moduleLandingProject {padding:10px 12px;border:0;border-left:2px solid var(--b-blue);border-radius:0;background:#f4f7fc;min-width:205px;max-width:250px}
.moduleLandingProject strong {font-size:13px}
.moduleLandingProject small {font-size:11px}
.moduleCardsGrid {display:grid;grid-template-columns:1fr;gap:0;border:1px solid var(--b-line);border-radius:8px;overflow:hidden;background:white}
.moduleCard {display:grid;grid-template-columns:38px minmax(160px,.8fr) minmax(220px,1.5fr) auto;grid-template-rows:auto auto;gap:4px 16px;text-align:left;align-items:center;min-height:89px;padding:14px 18px;border:0;border-bottom:1px solid var(--b-line);border-radius:0;box-shadow:none;background:#fff}
.moduleCard:last-child {border-bottom:0}
.moduleCard:hover {background:#f3f6fc;border-color:var(--b-line);transform:none;box-shadow:inset 3px 0 var(--b-blue)}
.moduleCardTop {display:contents}
.moduleCardIcon {grid-column:1;grid-row:1/3;color:var(--b-blue);width:36px;height:36px;display:grid;place-items:center;background:#eef3fb;border-radius:7px}
.moduleCard h3 {grid-column:2;grid-row:1/3;font-size:15px;line-height:1.35;margin:0}
.moduleCard p {grid-column:3;grid-row:1;font-size:12px;line-height:1.45;margin:0;color:#52647a}
.moduleAreas {grid-column:3;grid-row:2;margin:0;gap:8px}
.moduleAreas span {padding:0;background:none;color:#63768c;font-size:10px;font-weight:600}
.moduleAvailability {grid-column:4;grid-row:1/3;background:#f2f5fa;color:#405a7c;border:1px solid #dbe4f1;font-size:10px;padding:5px 7px;border-radius:4px}
.b-home-details {margin-top:12px;border:1px solid var(--b-line);border-radius:7px;background:white;padding:0 14px}
.b-home-details>summary {cursor:pointer;min-height:42px;display:flex;align-items:center;font-size:12px;color:#456080;list-style:none}
.b-home-details>summary::before {content:'+';margin-right:10px;font-size:17px}
.b-home-details[open]>summary::before {content:'−'}
.b-home-details .moduleSessionSummary {margin-top:8px}
.b-home-details .compactModuleInfo {margin-top:10px}

/* Summary bands and a unified consultation surface. Existing values are never recalculated. */
.b-summary-band {display:grid;border:1px solid var(--b-line);border-radius:6px;background:#f8fafd;padding:0;gap:0;margin:10px 0 12px;overflow:hidden}
.b-summary-band>.card,.b-summary-band>.miniStat {border:0;border-right:1px solid var(--b-line);border-radius:0;background:transparent;padding:10px 13px;margin:0;box-shadow:none;min-width:0}
.b-summary-band>:last-child {border-right:0}
.b-summary-band strong {font-size:21px;font-variant-numeric:tabular-nums;letter-spacing:-.025em;margin-top:4px;color:#243e63}
.b-summary-band span,.b-summary-band small {font-size:11px;line-height:1.35}
.b-summary-band #accountsPayableLastSyncStat {font-size:12px}
.lab-filter-host {padding:7px 0;border-top:1px solid #e7ebf2;border-bottom:1px solid #e7ebf2;margin:8px 0!important;gap:6px!important}
.lab-chips {gap:5px;margin:0}
.lab-chip {background:#eef3fb;border-color:#d4e0f2;color:#315a92;min-height:26px;font-size:11px;padding:3px 8px}
.tableWrap {border-radius:5px;border-color:#d6dfe9}
table.dataTable {font-size:12px;font-variant-numeric:tabular-nums}
table.dataTable th {background:#eef2f8;color:#344d70;padding:9px 10px;font-size:11px;border-bottom:1px solid #cbd7e7}
table.dataTable td {padding:8px 10px;line-height:1.35;border-color:#e9edf3}
table.dataTable tbody tr:nth-child(even) {background:#f8fafd}
table.dataTable tbody tr:hover {background:#edf3fc}
table.dataTable tbody tr:focus-within {background:#e7f0ff;outline-color:#7298d1}
html[data-lab-touch=off] table.dataTable td {padding:6px 9px}
.phmGridToolbar {gap:5px;min-height:32px}
.phmGridToolbar button,.phmGridColumnMenu>summary,.consultColumnSelector>summary {min-height:32px;font-size:11px;padding:6px 9px}
.phmGridColumnMenuPanel,.consultColumnSelectorMenu {z-index:110}
.b-project-banner {padding:8px 12px;background:#fff;border:1px solid var(--b-line);border-left:3px solid var(--b-blue);border-radius:5px;gap:10px;margin-bottom:10px}
.b-project-banner strong {font-size:13px}
.b-project-banner span,.b-project-banner small {font-size:10px}
.b-project-banner small {line-height:1.35}
.b-project-banner .secondary {min-height:34px;padding:7px 10px;font-size:12px}

/* Capture groups are adjacent, not hidden steps. */
#tabletRegisterPanel .tabletCard.b-capture-card {display:block;max-width:none;padding:14px}
.b-capture-grid {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px}
.b-capture-grid>section {min-width:0}
.b-capture-context {padding-right:20px;border-right:1px solid var(--b-line)}
.b-capture-context #tabletLoadMsg {margin:0 0 10px}
.b-task-heading {margin:0 0 12px;padding-bottom:8px;border-bottom:1px solid #e4e9f1;font-size:11px}
.b-capture-grid label {display:flex;flex-direction:column;gap:5px;margin:10px 0;min-width:0}
.b-capture-grid .formGrid {grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:12px;margin:0}
.b-capture-grid .formGrid label {margin-top:0}
.b-capture-grid .activityMeta {padding:8px 10px;font-size:12px;margin:8px 0;background:#f5f7fb;border-radius:4px}
#tabletRegisterPanel .b-capture-context .progressStatus {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:8px;gap:8px;background:#f1f5fc;border:1px solid #d8e2f2;margin:8px 0}
#tabletRegisterPanel .progressStatus strong {font-size:22px;color:#244c85}
#tabletRegisterPanel .progressStatus span {font-size:10px}
#tabletRegisterPanel .b-capture-report #fieldPercentage {font-size:28px}
#tabletRegisterPanel .b-capture-report textarea {min-height:58px;height:58px;resize:vertical}
#fieldPercentageHelp {font-size:11px;line-height:1.45;margin-top:4px}
.b-capture-report input[type=file] {font-size:12px;min-width:0;max-width:100%}
.b-capture-report .lab-camera-actions {gap:7px;margin:6px 0}
.b-capture-report .lab-camera-actions button {min-width:110px;font-size:12px}
.b-capture-report #photoPreview {font-size:11px;margin:4px 0}
.lab-touch-steps {gap:5px;margin:0 0 10px}
.lab-touch-steps button {border:0;border-bottom:2px solid #d1dced;border-radius:0;background:#f6f8fc;color:#405d88;min-height:36px;padding:6px 9px;font-size:11px}
.lab-touch-steps b {width:20px;height:20px;background:#dfe9f9;color:#2559aa;font-size:11px}
.lab-sticky-action {min-height:48px!important;box-shadow:0 -6px 0 #fff;margin-top:12px}
#inventoryDeliveryPanel .tabletCard.b-delivery-card {max-width:none}
.b-delivery-context {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;padding:10px 0;border-bottom:1px solid #e6ebf2}
.b-delivery-context .inventoryDeliveryContextGrid {display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0;min-width:0}
.b-delivery-context label {min-width:0;font-size:12px!important}
.b-delivery-context input,.b-delivery-context select {min-width:0;max-width:100%;font-size:13px!important}
.b-material-tools {display:flex;align-items:flex-end;gap:12px;margin:10px 0}
.b-material-tools .lab-touch-search {flex:1 1 55%;margin:0;min-width:0;font-size:12px!important}
.b-material-tools .lab-material-summary {flex:1 1 45%;margin:0;min-height:48px;display:flex;align-items:center;line-height:1.35;font-size:11px;padding:8px 10px;background:#eef3fb;color:#385c8f;border-color:#d5e1f4}
#inventoryDeliveryPanel .tableWrap {max-height:42vh}
#inventoryDeliveryPanel .cardHead {margin-bottom:6px}
#inventoryDeliveryPanel .b-delivery-card>label {margin:10px 0;font-size:12px}
#inventoryDeliveryPanel .b-delivery-card>label textarea {min-height:48px}
.lab-keyboard {background:#e7edf6;border-color:#bdcbe0}
.lab-keyboard-row .primary {background:var(--b-blue);border-color:var(--b-blue)}

/* Access keeps all original instructions and authentication controls. */
.loginScreen {background:#eef2f8;background-image:none}
.phmLoginCard {max-width:500px;padding:30px 34px;border-radius:8px;border:1px solid #d6dfec;box-shadow:0 12px 40px #1c355414;border-top:5px solid var(--b-blue)}
.loginBrandLogo {max-width:260px;margin-bottom:16px}
.loginBrand h1 {font-size:24px;letter-spacing:-.025em}
.lab-login-note {color:#765300;background:#fff5da;border:1px solid #ecd99f;border-radius:4px;font-size:10px;line-height:1.5;padding:8px}
.moduleKicker {background:#e8effa;color:#365e99;border-radius:3px}

@media(min-width:761px) {
 .erpWorkspace.sidebarCollapsed #moduleSidebar {display:block;width:82px!important;flex-basis:82px!important;padding:8px 6px!important;opacity:1;border-right:1px solid var(--b-line);overflow-y:auto;overflow-x:hidden;transform:none}
 .erpWorkspace.sidebarCollapsed #moduleSidebar .moduleSidebarTitle {display:none}
 .erpWorkspace.sidebarCollapsed #moduleSidebar .moduleSidebarDivider {font-size:0;padding:5px 0;border-top:1px solid #e5eaf2;margin:7px 5px}
 .erpWorkspace.sidebarCollapsed #moduleSidebar .moduleSideButton {display:flex;flex-direction:column;justify-content:center;gap:4px;padding:7px 2px;min-height:66px;min-width:0;text-align:center}
 .erpWorkspace.sidebarCollapsed #moduleSidebar .moduleSideButton>span:not(.moduleIcon):not(.b-nav-short) {display:none}
 .erpWorkspace.sidebarCollapsed #moduleSidebar .b-nav-short {display:block;font-size:10px;line-height:1.2;font-weight:650;white-space:normal;color:inherit}
 #moduleSidebar #sidebarRailToggle {position:static;transform:none;width:100%;height:34px;min-height:34px;border:1px solid var(--b-line);border-radius:5px;margin:0 0 8px;background:#eef2f8;color:#33527f;font-size:21px;box-shadow:none}
 .erpWorkspace:not(.sidebarCollapsed) #sidebarRailToggle {display:none}
 .erpWorkspace.sidebarCollapsed #sidebarRailToggle {display:block}
}
@media(min-width:1180px) {
 dialog.lab-drawer:not(.lab-date-dialog) {inset:100px 24px auto auto;margin:0;width:620px;height:auto;max-height:calc(100dvh - 128px);border:1px solid var(--b-line);border-radius:10px;box-shadow:0 18px 50px #14294735}
 .lab-drawer:not(.lab-date-dialog) .lab-drawer-body {grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:20px}
 .lab-drawer-head {padding:16px 20px}
 .lab-drawer-foot {padding:12px 20px}
 #inventorySlipsPanel:has(>#inventorySlipDetail:not([hidden])) {display:grid;grid-template-columns:minmax(330px,.9fr) minmax(0,1.1fr);gap:14px;align-items:start}
 #inventorySlipsPanel:has(>#inventorySlipDetail:not([hidden]))>.card {min-width:0;max-width:100%}
 #inventorySlipDetail {border-top:3px solid var(--b-blue)}
}
@media(max-width:1180px) and (min-width:761px) {
 #appShell>header {padding:6px 12px;gap:9px}
 #appModuleName {font-size:14px!important;max-width:265px}
 #empresaBadge {max-width:155px;font-size:10px}
 #networkBadge {font-size:10px;padding:5px 7px}
 .headright {gap:6px}
 #moduleContextBar {padding:8px 12px;gap:8px}
 #moduleContextTitle {font-size:14px}
 .moduleContextActions {max-width:23%}
 .moduleWorkspace main {padding:10px}
 .moduleCard {grid-template-columns:34px minmax(140px,.8fr) minmax(180px,1.2fr) auto;padding:13px 12px;gap:4px 10px}
 .moduleCard h3 {font-size:14px}
 .moduleAvailability {font-size:9px;padding:4px 5px}
 .moduleLandingProject {min-width:170px}
 .b-capture-grid {gap:16px;grid-template-columns:minmax(0,.75fr) minmax(0,1.25fr)}
 .b-capture-context {padding-right:14px}
 .b-delivery-context {gap:10px}
 .b-summary-band>.card,.b-summary-band>.miniStat {padding:9px}
 .b-summary-band strong {font-size:19px}
}
@media(max-width:980px) {
 .b-delivery-context {grid-template-columns:1fr}
 .b-capture-grid {grid-template-columns:1fr}
 .b-capture-context {padding:0;border-right:0}
 .b-capture-report {border-top:1px solid var(--b-line);padding-top:12px}
 .moduleCard {grid-template-columns:34px minmax(0,1fr) auto}
 .moduleCard h3 {grid-column:2;grid-row:1}
 .moduleCard p {grid-column:2/4;grid-row:2}
 .moduleAreas {grid-column:2/4;grid-row:3}
 .moduleAvailability {grid-column:3;grid-row:1}
 .moduleCardIcon {grid-row:1/4}
}
@media(max-width:760px) {
 #appShell>header {padding:7px 10px;flex-wrap:wrap;gap:6px;min-height:0}
 .appBrand {width:100%;gap:9px}
 .appBrandLogo {width:82px;max-height:28px}
 #appShell>header h1 {font-size:13px;white-space:normal}
 .headright {width:100%;gap:7px;justify-content:flex-end;padding:0}
 #empresaBadge {margin-right:auto;max-width:145px;font-size:10px}
 #networkBadge {font-size:9px;padding:5px}
 .headright .headerBtn {padding:5px 8px;min-height:36px}
 .b-account-menu>summary {font-size:11px;min-height:36px;padding:5px 8px}
 #moduleSidebar {width:min(290px,88vw)!important;max-width:88vw;padding:10px;position:absolute;background:white;z-index:90}
 .erpWorkspace.sidebarCollapsed #moduleSidebar {width:min(290px,88vw)!important;padding:10px!important;transform:translateX(-110%);opacity:1}
 #moduleSidebar .b-nav-short {display:none}
 #sidebarRailToggle,.erpWorkspace.sidebarCollapsed #sidebarRailToggle {position:fixed;left:auto;right:12px;bottom:70px;top:auto;width:48px;height:48px;min-height:48px;transform:none;background:var(--b-blue);border-radius:7px;box-shadow:0 4px 18px #14284730;z-index:95}
 #moduleContextBar {padding:9px 10px;flex-wrap:wrap;gap:8px;min-height:0}
 #moduleContextBar>div:first-child {flex:1 1 55%}
 #moduleContextTitle {font-size:13px}
 .moduleContextActions {max-width:38%;margin:0}
 .moduleContextStatus {font-size:9px;white-space:normal}
 .lab-shell-tools {width:100%;gap:6px}
 .lab-shell-tools button {min-height:36px;font-size:10px;flex:1}
 .b-section-dock {padding:0 8px}
 .b-section-dock .moduleSubmenuContext {min-width:90px;max-width:90px;font-size:9px}
 .b-section-dock .moduleSubmenuButton {min-height:44px;font-size:11px;padding:7px 10px}
 .b-section-dock .moduleSubmenuButton strong {font-size:11px}
 .moduleWorkspace main {padding:9px}
 .moduleLandingHero {padding:13px;display:block}
 .moduleLandingHero h2 {font-size:19px}
 .moduleLandingProject {max-width:none;margin-top:12px;padding:9px 11px}
 .moduleCard {padding:13px 10px;min-height:105px;gap:6px 9px}
 .moduleCard h3 {font-size:14px}
 .moduleCard p {font-size:11px}
 .moduleAvailability {font-size:8px;padding:3px 4px;max-width:90px;white-space:normal}
 .b-summary-band {grid-template-columns:repeat(2,minmax(0,1fr));gap:0}
 .b-summary-band>.card,.b-summary-band>.miniStat {border-bottom:1px solid var(--b-line);padding:10px}
 .b-summary-band strong {font-size:19px}
 .b-capture-grid {display:block}
 #tabletRegisterPanel .b-capture-grid .formGrid {grid-template-columns:1fr}
 .b-material-tools {display:block}
 .b-material-tools .lab-material-summary {margin-top:8px;min-height:38px}
 .b-delivery-context .inventoryDeliveryContextGrid {grid-template-columns:1fr}
 .lab-touch-steps {gap:4px}
 .lab-touch-steps button {font-size:10px;padding:5px 7px;min-height:44px}
 .b-project-banner {flex-direction:row;align-items:center}
 .b-project-banner .secondary {width:auto;max-width:110px;font-size:11px;padding:6px}
 .phmLoginCard {padding:24px 20px}
 .loginScreen {padding:20px 14px}
}
}
@media print {
 .b-section-dock,.b-account-menu,.b-home-details>summary {display:none!important}
 .b-capture-grid {display:block}
}

/* PHM V12 | Ajustes puntuales al modulo CxP, sin alterar Final B */
#cxpReportsPanel > .cardHead > .buttonRow,
#cxpTowerComparePanel > .cardHead > .buttonRow {
  display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:10px 12px;
}
#cxpReportsPanel > .cardHead > .buttonRow > button,
#cxpTowerComparePanel > .cardHead > .buttonRow > button {margin:0;white-space:normal;min-height:36px}
#cxpFinancialLibraryPanel .cxpLibraryDocumentActions {display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-width:170px}
#cxpFinancialLibraryPanel .cxpLibraryDocumentActions .cxpFinancialPreviewBtn {margin:0;min-height:32px}
#cxpFinancialLibraryPanel .cxpLibraryDocumentActions a {font-size:12px}
.cxpFinancialPreviewDialog {position:fixed;inset:0;z-index:99999;background:rgba(11,19,32,.78);display:flex;align-items:center;justify-content:center;padding:18px}
.cxpFinancialPreviewDialog[hidden] {display:none!important}
.cxpFinancialPreviewContent {width:min(1200px,100%);height:min(92vh,900px);min-height:380px;background:#fff;border-radius:12px;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 20px 55px #0007}
.cxpFinancialPreviewHeader {padding:12px 16px;display:flex;justify-content:space-between;align-items:center;gap:14px;border-bottom:1px solid #dfe7ec}
.cxpFinancialPreviewHeader h3 {font-size:17px;margin:0 0 5px;color:#101828}
.cxpFinancialPreviewHeader small {color:#667085;font-size:12px}
.cxpFinancialPreviewActions {display:flex;gap:9px;flex-wrap:wrap;align-items:center}
.cxpFinancialPreviewActions a,.cxpFinancialPreviewActions button {text-decoration:none;display:inline-flex;align-items:center;justify-content:center;min-height:36px;margin:0;padding:8px 13px}
.cxpFinancialPreviewStatus {padding:7px 16px;background:#f4f8fa;color:#344054;font-size:12px}
#cxpFinancialPreviewFrame {width:100%;min-height:0;flex:1;border:0;background:#e9eef2}
@media(max-width:900px){
  #cxpReportsPanel > .cardHead > .buttonRow,#cxpTowerComparePanel > .cardHead > .buttonRow {width:100%;justify-content:flex-start}
  #cxpReportsPanel > .cardHead > .buttonRow > button,#cxpTowerComparePanel > .cardHead > .buttonRow > button {width:auto;flex:1 1 160px}
  .cxpFinancialPreviewDialog {padding:6px}.cxpFinancialPreviewContent {height:94vh}.cxpFinancialPreviewHeader {align-items:flex-start;flex-wrap:wrap}
}
