/* Phone composition. Screen-only: fiscal documents retain their print layout. */
.mobile-page-heading,.mobile-document-toggle,.mobile-notes-toggle,.mobile-role-picker{display:none}
@media screen and (max-width:900px){
 .zoomroot .appmain{padding:68px 12px 24px!important}
 .mobile-page-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 2px 16px}
 .mobile-page-heading small{font-size:11px;color:var(--color-neutral-600)}
 .mobile-page-heading h1{font-size:23px;line-height:1.2;margin:4px 0;letter-spacing:-.5px}
 [data-mobile-duplicate-title="true"]{display:none!important}
 .mobile-screen-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:8px!important}
 .mobile-screen-actions .btn{width:100%;white-space:normal;height:auto!important;min-height:44px}
 [data-mobile-action-count="3"]>.btn-primary{grid-column:1/-1}
 .appmain [data-mobile-filter-bar="true"]{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;width:100%}
 .appmain[data-mobile-filters-open="false"] [data-mobile-filter-bar="true"]>.field:not([data-mobile-primary-search="true"]){display:none!important}
 .zoomroot table[data-mobile-cards]{display:block!important;min-width:0!important;width:100%!important;border:0;overflow:visible!important}
 .zoomroot table[data-mobile-cards] thead{display:block;border:0;margin:8px 0 12px;overflow-x:auto;scrollbar-width:thin}
 .zoomroot table[data-mobile-cards] thead tr{display:flex;gap:6px;width:max-content}
 .zoomroot table[data-mobile-cards] th{display:flex!important;align-items:center;gap:8px;min-height:34px;width:auto!important;padding:7px 10px!important;background:var(--color-neutral-100);border:1px solid var(--color-neutral-200);border-radius:16px;white-space:nowrap;font-size:10px}
 .zoomroot table[data-mobile-cards] tbody{display:grid;gap:12px;width:100%}
 .zoomroot table[data-mobile-cards] tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:14px;border:1px solid var(--color-neutral-200);border-radius:12px;background:var(--color-surface);box-shadow:0 2px 5px #00000005;min-width:0}
 .zoomroot table[data-mobile-cards] td{display:flex!important;flex-direction:column;align-items:flex-start!important;justify-content:flex-start!important;gap:4px;min-width:0;width:auto!important;max-width:100%;padding:0!important;border:0!important;white-space:normal!important;overflow-wrap:anywhere;text-align:left!important;font-size:13px}
 .zoomroot table[data-mobile-cards] td::before{content:attr(data-mobile-label);font-size:10px;text-transform:uppercase;letter-spacing:.4px;color:var(--color-neutral-600);font-weight:500}
 .zoomroot table[data-mobile-cards] td[data-mobile-role="title"]{grid-column:1/-1;grid-row:1;font-size:16px;font-weight:700;line-height:1.4}
 .zoomroot table[data-mobile-cards] td[data-mobile-role="title"]::before{display:none}
 .zoomroot table[data-mobile-cards] td[data-mobile-role="code"]{grid-column:1/-1;color:var(--color-neutral-600);font-size:11px}
 .zoomroot table[data-mobile-cards] td[data-mobile-role="full"],.zoomroot table[data-mobile-cards] td[data-mobile-role="actions"]{grid-column:1/-1}
 .zoomroot table[data-mobile-cards] td[data-mobile-role="actions"]{flex-direction:row;flex-wrap:wrap;border-top:1px solid var(--color-neutral-200)!important;padding-top:10px!important;gap:8px}
 .zoomroot table[data-mobile-cards] td[data-mobile-role="actions"]::before{display:none}
 .zoomroot table[data-mobile-cards] td .btn{min-height:40px}
 .zoomroot table[data-mobile-cards] td input,.zoomroot table[data-mobile-cards] td select{max-width:100%;min-width:0}
 .zoomroot table[data-mobile-cards] tr[data-mobile-empty="true"]{display:block;text-align:center;padding:24px 12px}
 .zoomroot table[data-mobile-cards] tr[data-mobile-empty="true"] td::before{display:none}
 .mobile-document-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;border:1px solid var(--color-neutral-200);border-radius:10px;background:var(--color-neutral-50,#fafafa);padding:12px;color:inherit;width:100%;min-height:62px}
 .mobile-document-toggle>span:first-child{display:grid;gap:4px;min-width:0}
 .mobile-document-toggle strong{font-size:14px;overflow-wrap:anywhere}.mobile-document-toggle small{color:var(--color-neutral-600)}
 .mobile-document-toggle>span:last-child{flex:none;font-size:12px}
 [data-screen-label="Venta"]>.mobile-document-toggle{order:-2}
 .zoomroot [data-screen-label="Venta"],.zoomroot [data-screen-label="Compras — Registrar"]{height:auto!important;overflow:visible!important;padding-top:12px!important}
 [data-mobile-context="false"] .sale-document-summary,[data-mobile-context="false"] .sale-header-fields,[data-mobile-context="false"] .purchase-document-summary,[data-mobile-context="false"] .purchase-registration-header,[data-mobile-context="false"] .fiscal-purchase-fields{display:none!important}
 [data-mobile-context="true"] .purchase-document-summary{position:static!important;width:100%!important}
 .mobile-notes-toggle{display:block;text-align:left;min-height:40px}
 [data-mobile-notes="false"]>.foot>.field,[data-mobile-notes="false"]>.purchase-footer>.field{display:none!important}
 .zoomroot .foot-r{width:100%!important}
 .zoomroot .totbox{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px!important;width:100%!important}
 .zoomroot [data-screen-label="Inicio"]>div:first-child{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
 .zoomroot [data-screen-label="Inicio"]>div:first-child .card{padding:12px!important;min-width:0}
 .mobile-role-picker{display:grid;gap:8px;font-size:12px;margin:12px 0}
 .zoomroot .permissions-table{display:table!important;min-width:0!important;width:100%!important;table-layout:fixed}
 .zoomroot .permissions-table tr{display:table-row!important}
 .zoomroot .permissions-table [data-mobile-permission-selected="false"]{display:none!important}
 .zoomroot .permissions-table th:first-child,.zoomroot .permissions-table td:first-child{width:72%!important;white-space:normal!important;overflow-wrap:anywhere}
 .zoomroot .permissions-table th,.zoomroot .permissions-table td{padding:12px 8px!important;width:28%!important}
 .zoomroot .permissions-table-wrap{overflow:visible!important}
 .zoomroot .dialog,.zoomroot .workspace-editor{border-radius:14px!important}
}
@media screen and (max-width:900px){
 .appmain[data-mobile-has-filters="false"] .mobile-page-heading>.btn{display:none}
 .zoomroot table[data-mobile-cards] td[data-mobile-role="code"]::before{display:none}
 .zoomroot [data-screen-label="Venta"] .cart-wrap tbody tr{gap:8px;padding:12px}
 .zoomroot [data-screen-label="Venta"] .cart-wrap td{padding:0!important;gap:2px}
 .zoomroot [data-screen-label="Venta"] .cart-wrap td::before{font-size:10px;margin-bottom:2px;font-weight:500}
 .zoomroot [data-screen-label="Venta"] .cart-wrap td[data-mobile-role="title"]::before,.zoomroot [data-screen-label="Venta"] .cart-wrap td[data-mobile-role="code"]::before,.zoomroot [data-screen-label="Venta"] .cart-wrap td[data-mobile-role="actions"]::before{display:none}
 .zoomroot [data-screen-label="Venta"] .cart-wrap td[data-mobile-role="actions"]{grid-column:2;justify-content:flex-end!important;border:0!important;padding:0!important}
 .zoomroot [data-screen-label="Venta"] .cart-wrap td[data-mobile-label="Total"]{grid-column:1;font-size:17px}
 .zoomroot .sale-line-search,.zoomroot .sale-line-search input{width:100%!important}
 .zoomroot .totbox>div{flex-direction:column;align-items:flex-start!important;gap:3px!important}
 .zoomroot .totbox>div:last-child{grid-column:1/-1;flex-direction:row;align-items:baseline!important;justify-content:space-between}
}
@media screen and (max-width:900px){
 .zoomroot .mobile-report-period{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .zoomroot .mobile-report-period>div:first-child{grid-column:1/-1;min-width:0!important}
 .zoomroot .mobile-report-period input{width:100%!important;min-width:0}
 .zoomroot .permissions-table button[aria-pressed]{min-height:28px!important;height:28px!important;border-radius:16px!important}
}
