/* Only the mobile record presentation uses this palette. Desktop layouts and theme preferences remain intact. */
.m78-tools,.m78-summary{display:none!important}.m78-original{display:contents}
@media(max-width:900px){
html.m78-active body{--m78-teal:#176579;--m78-ink:#172c36;--m78-line:#d7e1e7;--m78-muted:#52616c;--m78-green:#16633b;--m78-amber:#814300;--m78-red:#9e2532;--m78-blue:#15577a}
html.m78-active body :is(#erp-module-content,dialog){--accent:#176579;--erp76-on-accent:#fff}
html.m78-active body :is(.m77-form:not(.m77-search-form),dialog){--panel:#fff;--surface:#fff;--text:#172c36;--muted:#52616c;--border:#d7e1e7;color:var(--text)}
html.m78-active body .m77-form:not(.m77-search-form){background:#fff;border-radius:10px}
html.m78-active body .m78-tools.m78-tools-active{display:flex!important;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:10px 0}
html.m78-active body .m78-filters{display:flex;flex:1 1 auto;gap:6px;flex-wrap:wrap;min-width:0}
html.m78-active body .m78-filters[hidden]{display:none!important}
html.m78-active body .m78-tools :is(button,.button){box-sizing:border-box!important;width:auto!important;height:auto!important;min-height:38px!important;padding:8px 11px!important;border:1px solid #cbd8df!important;border-radius:20px!important;font-size:.78rem!important;font-weight:650!important;line-height:1.2!important;background:#fff!important;color:#263e4e!important}
html.m78-active body .m78-tools button[aria-pressed=true]:not(.m78-switch){background:#176579!important;color:#fff!important;border-color:#176579!important}
html.m78-active body .m78-tools .m78-switch{min-height:38px!important;border:0!important;border-radius:6px!important;background:transparent!important;color:#176579!important;text-decoration:underline;text-underline-offset:3px;padding:7px 2px!important;margin-left:auto}
html.m78-active body :is(#erp-module-content,.p75-content,main) table.m78-managed.m78-accordion{--panel:#fff;--surface:#fff;--text:#172c36;--muted:#52616c;--border:#d7e1e7;display:block!important;box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;table-layout:auto!important;border:0!important;background:transparent!important;border-spacing:0!important}
html.m78-active body :is(#erp-module-content,.p75-content,main) table.m78-accordion>:is(thead,colgroup,caption){display:none!important}
html.m78-active body :is(#erp-module-content,.p75-content,main) table.m78-accordion>tbody{display:grid!important;gap:9px!important;width:100%!important;max-width:100%!important;min-width:0!important}
html.m78-active body :is(#erp-module-content,.p75-content,main) table.m78-accordion>tbody>tr.m78-record{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:0!important;width:100%!important;max-width:100%!important;min-width:0!important;height:auto!important;min-height:0!important;box-sizing:border-box!important;border:1px solid #d7e1e7!important;border-left:5px solid #3284a4!important;border-radius:10px!important;margin:0!important;padding:0!important;overflow:hidden;background:#fff!important;color:#172c36!important;box-shadow:none!important}
html.m78-active body :is(#erp-module-content,.p75-content,main) table.m78-accordion>tbody>tr.m78-record[data-m78-tone=success]{border-left-color:#36a462!important}
html.m78-active body :is(#erp-module-content,.p75-content,main) table.m78-accordion>tbody>tr.m78-record[data-m78-tone=warning]{border-left-color:#e9a12b!important}
html.m78-active body :is(#erp-module-content,.p75-content,main) table.m78-accordion>tbody>tr.m78-record[data-m78-tone=danger]{border-left-color:#dc4655!important}
html.m78-active body :is(#erp-module-content,.p75-content,main) table.m78-accordion>tbody>tr.m78-record[data-m78-tone=muted]{border-left-color:#a5afbc!important}
html.m78-active body :is(#erp-module-content,.p75-content,main) table.m78-accordion>tbody>tr.m78-record>td{position:static!important;inset:auto!important;float:none!important;grid-column:auto!important;grid-row:auto!important;box-sizing:border-box!important;min-width:0!important;max-width:100%!important;width:auto!important;height:auto!important;min-height:0!important;margin:0!important;white-space:normal!important;overflow-wrap:anywhere!important;border:0!important;background:#f2f8fa!important;color:#172c36!important;box-shadow:none!important;padding:10px 12px!important;font-size:.88rem!important;line-height:1.4!important;display:block!important}
html.m78-active body :is(#erp-module-content,.p75-content,main) table.m78-accordion>tbody>tr.m78-record>td:first-child{grid-column:1/-1!important;padding:0!important;display:block!important;min-width:0!important;max-width:100%!important;background:#fff!important;z-index:auto!important}
html.m78-active body :is(#erp-module-content,.p75-content,main) table.m78-accordion>tbody>tr.m78-record>td:first-child::before{display:none!important}
html.m78-active body :is(#erp-module-content,.p75-content,main) table.m78-accordion>tbody>tr.m78-record>td:not(:first-child)::before{content:attr(data-m78-label)!important;display:block!important;font-size:.72rem!important;line-height:1.3!important;font-weight:600!important;color:#52616c!important;margin-bottom:4px!important;position:static!important;white-space:normal!important}
html.m78-active body :is(#erp-module-content,.p75-content,main) table.m78-accordion>tbody>tr.m78-record:not(.m78-open)>td:not(:first-child){display:none!important}
html.m78-active body :is(#erp-module-content,.p75-content,main) table.m78-accordion>tbody>tr.m78-record>td .m78-original{display:none!important}
html.m78-active body :is(#erp-module-content,.p75-content,main) table.m78-accordion>tbody>tr.m78-record.m78-open>td .m78-original{display:block!important;padding:10px 12px!important;border-top:1px solid #d7e1e7;background:#f2f8fa!important;color:#172c36!important}
html.m78-active body :is(#erp-module-content,.p75-content,main) table.m78-accordion>tbody>tr.m78-record>td:last-child:not(:first-child){grid-column:1/-1!important;border-top:1px solid #d7e1e7!important}
html.m78-active body :is(#erp-module-content,.p75-content,main) table.m78-accordion>tbody>tr.m78-record>td :is(.actions,.row-actions,.finance-actions,.sales-actions){display:flex!important;gap:7px!important;flex-wrap:wrap!important;align-items:center!important;min-width:0!important}
html.m78-active body :is(#erp-module-content,.p75-content,main) table.m78-accordion>tbody>tr.m78-record>td :is(button,.button,.mini-action){height:auto!important;min-height:40px!important;width:auto!important;max-width:100%!important;box-sizing:border-box!important;padding:9px 11px!important;font-size:.82rem!important;line-height:1.3!important;background:#fff!important;color:#176579!important;border:1px solid #b9ced8!important;border-radius:8px!important}
html.m78-active body :is(#erp-module-content,.p75-content,main) table.m78-accordion>tbody>tr.m78-record>td :is(.primary,.r65-primary,.rb72-emit,[data-payment-open],[data-rpay-open],button[type=submit]){background:#176579!important;color:#fff!important;border-color:#176579!important}
html.m78-active body :is(#erp-module-content,.p75-content,main) table.m78-accordion>tbody>tr.m78-record>td :is(.danger,.danger-link,.jf-icon-danger){background:#fff0f1!important;color:#9e2532!important;border-color:#e6b8be!important}
html.m78-active body :is(#erp-module-content,.p75-content,main) table.m78-accordion>tbody>tr.m78-record>td .m78-summary{display:grid!important;grid-template-columns:minmax(0,1fr) 18px!important;gap:5px 8px!important;align-items:center!important;box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;min-height:86px!important;height:auto!important;margin:0!important;padding:12px!important;border:0!important;border-radius:0!important;background:#fff!important;color:#172c36!important;text-align:left!important;white-space:normal!important;cursor:pointer!important;box-shadow:none!important}
.m78-summary .m78-title{grid-column:1;font-size:.95rem!important;line-height:1.35!important;color:#172c36!important;overflow-wrap:anywhere;font-weight:750!important;min-width:0}
.m78-summary .m78-subtitle{grid-column:1;font-size:.78rem!important;font-weight:400!important;line-height:1.35!important;color:#52616c!important;overflow-wrap:anywhere}
.m78-summary .m78-chevron{grid-column:2;grid-row:1/5;font-size:24px!important;color:#52616c!important;align-self:center;transition:transform .15s}
.m78-open .m78-chevron{transform:rotate(180deg)}
.m78-summary .m78-badge{grid-column:1;justify-self:start;font-size:.73rem!important;line-height:1.3!important;font-weight:650!important;border-radius:14px;padding:4px 8px;background:#e2f1f9!important;color:#15577a!important;max-width:100%;box-sizing:border-box;overflow-wrap:anywhere}
.m78-summary .m78-badge[data-tone=success]{background:#dff4e6!important;color:#16633b!important}
.m78-summary .m78-badge[data-tone=warning]{background:#fff0cf!important;color:#814300!important}
.m78-summary .m78-badge[data-tone=danger]{background:#ffe3e6!important;color:#9e2532!important}
.m78-summary .m78-badge[data-tone=muted]{background:#e9edf2!important;color:#465466!important}
.m78-summary .m78-balance{grid-column:1;font-size:.82rem!important;line-height:1.35!important;font-weight:650!important;color:#172c36!important}
html.m78-active body :is(#erp-module-content,.p75-content,main) table.m78-accordion>tbody>tr.m78-record.m78-open>td[data-ps54-col-off]:not([data-m78-user-hidden]){display:block!important}
html.m78-active body :is(#erp-module-content,.p75-content,main) table.m78-accordion>tbody>tr.m78-record>td[data-m78-user-hidden]:not(:first-child){display:none!important}
html.m78-active body :is(#erp-module-content,.p75-content,main) table.m78-accordion>tbody>tr.m78-record:is([hidden],[data-ps54-hidden],[data-m78-hidden],[data-f73-off]){display:none!important}
html.m78-active body :is(#erp-module-content,.p75-content,main) table.m78-accordion>tbody>tr.m78-record>td[hidden]{display:none!important}
html.m78-active body .ps54-scroll:has(>table.m78-accordion){max-height:none!important;overflow:visible!important;padding:0!important;border:0!important}
html.m78-active body .ps54-host:has(table.m78-accordion){background:transparent!important;border:0!important;box-shadow:none!important}
html.m78-active body .ps54-host:has(table.m78-accordion) .ps54-toolbar{border:1px solid #d7e1e7;border-radius:9px;margin-bottom:10px;background:#fff!important;color:#172c36!important}
html.m78-active body .m78-summary:focus-visible{outline:3px solid #176579!important;outline-offset:-3px}
html.m78-active body :is(.g73-tabs a[aria-current=page],.cr-tab[aria-selected=true]){background:#176579!important;color:#fff!important}
html.m78-active body .ps54-mobile-hint:has(+.unused){display:none}
html.m78-active body .ps54-host:has(table.m78-accordion)>.ps54-mobile-hint{display:none!important}
}
@media(prefers-reduced-motion:reduce){.m78-chevron{transition:none!important}}
@media print{.m78-tools,.m78-summary{display:none!important}.m78-original{display:contents!important}}
@media(max-width:900px){
html.m78-active body .m78-native-active{box-sizing:border-box!important;min-width:0!important;max-width:100%!important;height:auto!important;min-height:0!important;padding:0!important;display:block!important;position:relative;border:1px solid #d7e1e7!important;border-left:5px solid #3284a4!important;border-radius:10px!important;background:#fff!important;color:#172c36!important;overflow:hidden;--panel:#fff;--surface:#fff;--text:#172c36;--muted:#52616c;--border:#d7e1e7}
html.m78-active body .m78-native-active[data-m78-tone=success]{border-left-color:#36a462!important}html.m78-active body .m78-native-active[data-m78-tone=warning]{border-left-color:#e9a12b!important}html.m78-active body .m78-native-active[data-m78-tone=danger]{border-left-color:#dc4655!important}html.m78-active body .m78-native-active[data-m78-tone=muted]{border-left-color:#a5afbc!important}
html.m78-active body .m78-native-active>.m78-summary{display:grid!important;position:relative!important;z-index:2;grid-template-columns:minmax(0,1fr) 18px!important;gap:6px 8px!important;box-sizing:border-box!important;width:100%!important;max-width:100%!important;height:auto!important;min-height:78px!important;padding:12px!important;margin:0!important;background:#fff!important;color:#172c36!important;border:0!important;border-radius:0!important;text-align:left!important}
html.m78-active body .m78-native-active>.m78-native-body{display:none!important;padding:12px;background:#f2f8fa!important;color:#172c36!important;border-top:1px solid #d7e1e7}
html.m78-active body .m78-native-active.m78-open>.m78-native-body{display:block!important}html.m78-active body .m78-native-active .wt-card-open{position:static!important;display:block;width:auto;height:auto;padding:8px;margin:0 0 10px;inset:auto!important}html.m78-active body .m78-native-active .wt-card-open::before{content:attr(aria-label);font-size:.85rem;text-decoration:underline;color:#176579}
html.m78-active body .m78-native-active .m78-native-body :is(button,.button){min-height:40px!important;padding:9px 11px!important;font-size:.82rem!important;max-width:100%;box-sizing:border-box}
html.m78-active body .m78-native-active .m78-native-body a{color:#176579}
}
.m78-finance{display:none}
@media(max-width:900px){html.m78-active body :is(#erp-module-content,.p75-content,main) table.m78-accordion .m78-finance{display:grid!important;gap:7px;border-bottom:1px solid #d7e1e7;padding:0 0 12px;margin:0 0 12px;width:100%;box-sizing:border-box}.m78-finance>div{display:flex;align-items:baseline;justify-content:space-between;gap:10px;font-size:.85rem}.m78-finance :is(dt,dd){margin:0;min-width:0;overflow-wrap:anywhere}.m78-finance dd{font-weight:650;text-align:right}.m78-summary .m78-badge[data-tone=info]{background:#e2f1f9!important;color:#15577a!important}}

@media(max-width:900px){html.m78-active body .m78-filters{flex-wrap:nowrap!important;overflow-x:auto;max-width:100%;flex-basis:100%;padding-bottom:3px;scrollbar-width:thin}html.m78-active body .m78-filters>button{white-space:nowrap!important;flex-shrink:0}html.m78-active body :is(.m78-summary,.m78-tools,.m78-finance,table.m78-accordion){font-family:var(--font-family,system-ui,-apple-system,"Segoe UI",sans-serif)!important}}

@media(max-width:900px){html.m78-active body table.m78-accordion .m78-original .rx68-mobile-amounts{display:none!important}html.m78-active body table.m78-accordion .rx68-refs{display:flex!important;gap:5px 8px!important;flex-wrap:wrap!important;font-size:.8rem}html.m78-active body table.m78-accordion td :is(.rb72-badge,.rd63-doc-state){display:inline-block;margin:2px 4px 2px 0;font-size:.75rem;line-height:1.35}html.m78-active body table.m78-accordion td .rb72-badge.pending{background:#fff0cf!important;color:#814300!important;border-radius:7px;padding:4px 6px}}

/* Take theme tokens from the page before module styles redefine them. */
@media screen and (max-width:900px) {
  html[data-theme] body {
    --phone-action:var(--accent); --phone-on-action:var(--erp-on-accent,var(--on-accent,CanvasText));
    --phone-surface:var(--panel,Canvas); --phone-text:var(--text,CanvasText); --phone-line:var(--border,ButtonBorder);
  }
  html[data-theme=corporativo] body {
    --phone-action:#ffd21c; --phone-on-action:#17191c; --phone-surface:white; --phone-text:#16191e; --phone-line:#d6d9dd;
  }
  html[data-theme] body :is(#erp-module-content,dialog) {
    --accent:var(--phone-action); --erp76-on-accent:var(--phone-on-action); --m78-teal:var(--phone-action);
    --panel:var(--phone-surface); --text:var(--phone-text); --border:var(--phone-line);
  }
  html[data-theme] body #erp-module-content :is(.panel,.quote-phone-list article,.m78-native-active,table.m78-accordion>tbody>tr.m78-record) {
    box-sizing:border-box!important;min-width:0!important;max-width:100%!important;
    background:var(--phone-surface)!important;color:var(--phone-text)!important;border:1px solid var(--phone-line)!important;border-radius:14px!important;
  }
  html[data-theme] body #erp-module-content :is(.m78-title,.quote-phone-list h3,h1,h2) {
    color:var(--phone-text)!important;font-family:inherit!important; letter-spacing:-.015em;line-height:1.25!important;
  }
  html[data-theme] body #erp-module-content :is(.m78-title,.quote-phone-list h3){font-size:1.09rem!important;font-weight:750!important}
  html[data-theme] body #erp-module-content :is(button[aria-pressed=true]:not(.m78-switch),.button.primary,.btn-primary,.r65-primary,.rb72-emit,.m78-next,button[type=submit]:not(.ghost):not(.danger):not(.delete)) {
    background:var(--phone-action)!important;color:var(--phone-on-action)!important;border-color:var(--phone-action)!important;
  }
  html[data-theme] body #erp-module-content :is(.m78-summary,.m78-tools button,.m78-next,input,select,textarea) {font-family:inherit!important}
  html[data-theme] body #erp-module-content .m78-tools button {border-radius:9px!important;min-height:44px!important}
  html[data-theme] body #erp-module-content table.m78-accordion .m78-summary {
    background:var(--phone-surface)!important;color:var(--phone-text)!important;padding:13px!important;text-align:start!important;
  }
  .m78-channel {grid-column:1;display:flex;align-items:center;gap:.5rem;color:var(--phone-text);font-size:.9rem;font-weight:700}
  .m78-channel-icon {display:grid;place-items:center;width:1.65rem;height:1.65rem;border-radius:.4rem;background:#eee;color:#20252b;font-size:1.15rem;line-height:1}
  .m78-channel[data-platform=booking] .m78-channel-icon {background:#003b95;color:white}
  .m78-channel[data-platform=airbnb] .m78-channel-icon {background:#ff385c;color:white;font-size:0}
  .m78-channel[data-platform=airbnb] .m78-channel-icon::after {content:'';width:70%;height:70%;background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 23c-4-4-5-8-2-10 4-3 9 3 2 10-5 6-10 7-12 4-2-3 0-7 3-13L12 4q4-7 8 0l5 10c3 6 5 10 3 13-2 3-7 2-12-4Z' fill='none' stroke='white' stroke-width='2.4'/%3E%3C/svg%3E")}
  html[data-theme] body #erp-module-content .m78-next {display:inline-flex!important;align-items:center;justify-content:center;box-sizing:border-box;max-width:calc(100% - 26px);margin:0 13px 12px;padding:.5em .8em;min-height:44px;border-radius:8px;font-weight:700;text-decoration:none}
}
.m78-next {display:none}

@media screen and (max-width:900px) {
 html[data-theme] body main#erp-module-content header.md-page-heading {display:flex!important;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:12px!important}
 header.md-page-heading>div:first-child>:is(small,p){display:none!important}
 html[data-theme] body main#erp-module-content header.md-page-heading>.actions {display:flex!important;align-items:start;flex-wrap:wrap;gap:6px;width:auto!important;max-width:100%}
 html[data-theme] body main#erp-module-content .m78-more {min-width:0;max-width:100%;margin:0}
 html[data-theme] body main#erp-module-content .m78-more>summary {cursor:pointer;padding:10px 12px;line-height:1.4;color:var(--phone-text);font-weight:650}
 html[data-theme] body main#erp-module-content .m78-more[open]>.button {display:flex;width:100%;box-sizing:border-box;margin-block:4px}
 html[data-theme] body main#erp-module-content :is(.rw-tab[aria-selected=true],.rw-tab.active,button.m78-filter[aria-pressed=true]){background:var(--phone-action)!important;color:var(--phone-on-action)!important}
}

@media screen and (max-width:900px){html[data-theme] body main#erp-module-content .m78-more>summary{word-break:normal!important;overflow-wrap:normal!important;white-space:normal!important;min-width:min(8rem,100%);box-sizing:border-box}html[data-theme] body main#erp-module-content .seg53-cards{display:grid!important;grid-template-columns:1fr!important}html[data-theme] body main#erp-module-content .seg53-cards>*{width:100%!important;min-width:0!important}html[data-theme] body.page-cotizaciones main#erp-module-content header.md-page-heading .actions>:is(button,a){background:var(--phone-action)!important;color:var(--phone-on-action)!important}}

@media screen and (max-width:900px){html[data-theme] body #erp-module-content .charge-phone .charge-tabs{display:flex!important;flex-wrap:wrap!important;gap:5px}html[data-theme] body #erp-module-content .charge-phone .charge-tabs>button{width:auto!important;flex:0 0 auto!important;white-space:nowrap!important;padding-inline:.55em!important}html[data-theme] body #erp-module-content .md-page-heading .header-actions a[aria-haspopup=dialog]{background:var(--phone-action)!important;color:var(--phone-on-action)!important}}
