.priceListAdmin{overflow:auto!important}.priceListSummary{display:grid;grid-template-columns:1.3fr repeat(3,1fr);gap:10px;margin-bottom:12px}.priceListSummary>label,.priceListSummary>span{min-height:82px;padding:13px 15px;border:1px solid var(--line);border-radius:13px;background:var(--panel);box-shadow:var(--shadow);display:flex;flex-direction:column;justify-content:center;gap:6px}.priceListSummary small{font-size:9px;font-weight:900;color:var(--muted);letter-spacing:.05em}.priceListSummary b{font-size:17px}.priceListSummary select{height:38px;border:1px solid #8bc99a;border-radius:8px;background:var(--panel);padding:0 10px;font-weight:900;color:var(--text)}.priceListPanel{background:var(--panel);border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow);overflow:hidden}.priceListPanel>header{display:grid;grid-template-columns:1fr minmax(280px,460px) auto;gap:10px;align-items:center;padding:12px 14px;border-bottom:1px solid var(--line)}.priceListPanel h2{margin:0;font-size:19px}.priceListPanel header div span{font-size:10px;color:var(--muted)}.priceListPanel header label{height:42px;border:1px solid #8bc99a;border-radius:9px;display:flex;align-items:center;gap:7px;padding:0 10px}.priceListPanel header input{min-width:0;width:100%;border:0;outline:0;background:transparent}.priceListPanel header button,.priceListTable article>button{height:42px;border:0;border-radius:8px;background:#00a83b;color:#fff;padding:0 14px;font-weight:900}.priceListPanel button:disabled{opacity:.4}.priceListMessage{padding:10px 14px;background:#e8f7eb;color:#087b31;font-weight:800;border-bottom:1px solid var(--line)}.priceListTable{overflow:auto}.priceListTable>article,.priceListTable>div{min-width:980px;display:grid;grid-template-columns:36px 130px 1.7fr 150px 190px 145px;gap:10px;align-items:center;padding:9px 14px;border-bottom:1px solid var(--line)}.priceListTable>div{background:var(--soft);font-size:10px;text-transform:uppercase;color:var(--muted)}.priceListTable>article{min-height:60px}.priceListTable>article.dirty{background:#fffaf0}.priceListTable input[type=checkbox]{width:18px;height:18px;accent-color:#00a83b}.priceListTable article strong{color:#008f33}.priceListTable .currentPrice{font-weight:900}.priceListTable article>label{height:40px;border:1px solid var(--line);border-radius:8px;display:flex;align-items:center;gap:6px;padding-left:10px}.priceListTable article>label span{color:#008f33;font-weight:900}.priceListTable article>label input{font-size:15px;font-weight:900}.priceListEmpty{padding:30px;text-align:center;color:var(--muted)}.priceListPanel>footer{padding:10px 14px;display:flex;align-items:center;justify-content:space-between;font-size:11px}.priceListPanel>footer button{height:38px;border:1px solid var(--line);border-radius:8px;background:var(--panel);padding:0 12px;font-weight:800}.priceListPanel>footer button+button{margin-left:7px}@media(max-width:1000px){.priceListPanel>header,.priceListSummary{grid-template-columns:1fr 1fr}.priceListPanel>header>div{grid-column:1/-1}}@media(max-width:650px){.priceListPanel>header,.priceListSummary{grid-template-columns:1fr}.priceListPanel>header>div{grid-column:auto}.priceListPanel>footer{align-items:flex-start;gap:10px;flex-direction:column}}.priceListActions{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:0 0 14px}.priceListActions article{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #d8e5dc;border-radius:14px;padding:14px}.priceListActions article>div{display:flex;flex-direction:column;margin-right:auto}.priceListActions small{font-size:11px;color:#15803d;font-weight:800;letter-spacing:.06em}.priceListActions b{font-size:15px;color:#20352a}.priceListActions input:not([type=file]),.priceListActions select{height:42px;border:1px solid #c9d9cf;border-radius:8px;padding:0 12px;min-width:180px}.priceListActions input[type=file]{position:absolute;width:1px;height:1px;opacity:0}.priceListActions button{height:42px;border:0;border-radius:8px;background:#0aa63d;color:#fff;font-weight:800;padding:0 16px;white-space:nowrap}.priceListActions article>span{font-size:12px;color:#64756c;max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(max-width:1050px){.priceListActions{grid-template-columns:1fr}.priceListActions article{flex-wrap:wrap}.priceListActions article>div{width:100%}}.supplierDbImport{display:grid;grid-template-columns:1.2fr .8fr;gap:12px}.supplierDbImport>article,.supplierDbImport>label,.supplierDbStats,.supplierImportRules{background:var(--panel);border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow);padding:18px}.supplierDbImport>article{display:flex;gap:14px;align-items:flex-start}.supplierDbImport>article>span{width:50px;height:50px;border-radius:50%;background:#e1f6e5;color:#008f33;display:grid;place-items:center;font-size:24px;font-weight:900}.supplierDbImport article small{font-size:10px;color:#008f33;font-weight:900}.supplierDbImport article h2{margin:5px 0;font-size:20px}.supplierDbImport article p{margin:0;color:var(--muted);font-size:12px}.supplierDbStats{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,1fr) auto;gap:10px;align-items:center}.supplierDbStats>span{display:flex;flex-direction:column;padding:10px;border-radius:10px;background:#edf8ef;text-align:center}.supplierDbStats b{font-size:25px;color:#008f33}.supplierDbStats small{font-size:10px}.supplierDbStats a{height:46px;display:grid;place-items:center;padding:0 15px;border-radius:9px;background:#00a83b;color:#fff;text-decoration:none;font-weight:900}.supplierImportRules{margin-top:12px}.supplierImportRules h3{margin:0 0 12px}.supplierImportRules>div{display:grid;grid-template-columns:repeat(5,1fr);gap:7px}.supplierImportRules span{padding:9px;border-radius:8px;background:#f1f6f2;color:#345d40;font-size:11px;font-weight:800}@media(max-width:800px){.supplierDbImport{grid-template-columns:1fr}.supplierDbStats{grid-template-columns:1fr 1fr}.supplierDbStats a{grid-column:1/-1}.supplierImportRules>div{grid-template-columns:1fr 1fr}}.cleanImporter{margin-bottom:12px}.compactImportHistory{margin:0 0 12px;border:1px solid var(--line);border-radius:12px;background:var(--panel);box-shadow:var(--shadow);overflow:hidden}.compactImportHistory summary{padding:11px 14px;cursor:pointer;font-weight:900;color:#345d40}.compactImportHistory>div{padding:0 14px 12px}.compactImportHistory>div:not(.importHistoryRows){display:flex;gap:14px;align-items:center;font-size:11px}.compactImportHistory>div:not(.importHistoryRows) span{color:var(--muted)}.compactImportHistory>div:not(.importHistoryRows) small{margin-left:auto;color:var(--muted)}.importHistoryRows article{display:grid;grid-template-columns:1fr 130px 100px 110px;gap:10px;align-items:center;padding:9px;border-top:1px solid var(--line)}.importHistoryRows article>span{display:flex;flex-direction:column}.importHistoryRows small{font-size:9px;color:var(--muted)}.importHistoryRows em{font-style:normal;color:#008f33;font-size:10px;font-weight:900}@media(max-width:650px){.importHistoryRows article{grid-template-columns:1fr 1fr}.compactImportHistory>div:not(.importHistoryRows){align-items:flex-start;flex-direction:column;gap:4px}.compactImportHistory>div:not(.importHistoryRows) small{margin-left:0}}.supplierMaster{overflow:auto!important}.supplierMasterPanel{background:var(--panel);border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow);overflow:hidden}.supplierMasterPanel>header{padding:13px 16px;display:grid;grid-template-columns:1fr minmax(320px,520px) auto;gap:10px;align-items:center}.supplierMasterPanel h2{margin:0}.supplierMasterPanel>header label{height:44px;border:1px solid #8bc99a;border-radius:9px;display:flex;align-items:center;gap:7px;padding:0 10px}.supplierMasterPanel>header input{width:100%;border:0;outline:0;background:transparent}.supplierMasterActions{display:flex;gap:8px}.supplierMasterActions a,.supplierMasterActions button{height:44px;display:grid;place-items:center;padding:0 13px;border:0;border-radius:9px;background:#00a83b;color:#fff;text-decoration:none;font-weight:900;white-space:nowrap;cursor:pointer}.supplierMasterActions a{background:#eaf7ee;color:#008f33;border:1px solid #9bd4aa}.supplierMasterPanel>div{overflow:auto}.supplierMasterPanel article,.supplierMasterPanel>div>div{min-width:1180px;display:grid;grid-template-columns:.7fr 2fr 1fr 1.2fr 1.3fr 1fr 1fr;gap:10px;align-items:center;padding:10px 15px;border-top:1px solid var(--line)}.supplierMasterPanel>div>div{background:var(--soft);font-size:10px;color:var(--muted);text-transform:uppercase}.supplierMasterPanel article>strong{color:#008f33}.supplierMasterPanel article>span{display:flex;flex-direction:column}.supplierMasterPanel article small{font-size:9px;color:var(--muted)}.supplierMasterPanel article em{font-size:11px;color:#008f33;font-style:normal;font-weight:900}.supplierRowActions{align-items:flex-start;gap:4px}.supplierRowActions button{border:1px solid #9bd4aa;background:#fff;color:#008f33;border-radius:8px;padding:7px 11px;font-weight:900;cursor:pointer}.supplierMasterEmpty{padding:45px 20px;text-align:center;color:var(--muted)}.supplierMasterMessage{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;padding:11px 14px;border:1px solid #87d09a;border-radius:10px;background:#e8f8ed;color:#067a2c;font-weight:800}.supplierMasterMessage button{border:0;background:transparent;color:inherit;font-size:22px;cursor:pointer}.supplierMasterBackdrop{position:fixed;inset:0;z-index:1400;background:rgba(20,34,28,.68);display:grid;place-items:center;padding:20px}.supplierMasterForm{width:min(720px,100%);max-height:calc(100vh - 32px);overflow:auto;background:#fff;border-radius:22px;padding:24px;box-shadow:0 24px 70px rgba(0,0,0,.28)}.supplierMasterForm>header{display:flex;justify-content:space-between;align-items:flex-start;padding-bottom:14px;border-bottom:1px solid var(--line)}.supplierMasterForm>header small{font-weight:900;letter-spacing:.12em;color:#008f33}.supplierMasterForm>header h2{margin:4px 0 0;font-size:28px}.supplierMasterForm>header>button{width:42px;height:42px;border:0;border-radius:50%;background:#eff5f0;font-size:26px;cursor:pointer}.supplierMasterCode{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap;padding:15px 0}.supplierMasterCode span{font-weight:800}.supplierMasterCode strong{font-size:16px}.supplierMasterCode small{flex-basis:100%;color:var(--muted)}.supplierMasterFormGrid{display:grid;grid-template-columns:1fr 1fr;gap:13px 16px}.supplierMasterFormGrid label{display:flex;flex-direction:column;gap:6px}.supplierMasterFormGrid label.wide{grid-column:1/-1}.supplierMasterFormGrid label>span{font-size:13px;font-weight:900;color:#5f6f65}.supplierMasterFormGrid input,.supplierMasterFormGrid select{height:50px;border:1px solid #9bc8a6;border-radius:10px;padding:0 13px;background:#fff;font:inherit;color:#26332b}.supplierMasterFormGrid input:focus,.supplierMasterFormGrid select:focus{outline:2px solid #00ad42;outline-offset:1px}.supplierMasterFormError{margin:13px 0 0;padding:10px 12px;border-radius:8px;background:#fff0ee;color:#b42318;font-weight:800}.supplierMasterForm>footer{display:flex;justify-content:flex-end;gap:10px;padding-top:18px}.supplierMasterForm>footer button{min-height:48px;border:0;border-radius:10px;padding:0 20px;background:#00ad42;color:#fff;font-weight:900;cursor:pointer}.supplierMasterForm>footer button.secondary{border:1px solid var(--line);background:#fff;color:#5d6b62}.supplierMasterForm>footer button:disabled{opacity:.55;cursor:wait}@media(max-width:800px){.supplierMasterPanel>header{grid-template-columns:1fr}.supplierMasterActions{width:100%}.supplierMasterActions>*{flex:1}.supplierMasterFormGrid{grid-template-columns:1fr}.supplierMasterFormGrid label.wide{grid-column:auto}.supplierMasterBackdrop{padding:8px}.supplierMasterForm{padding:18px;border-radius:16px}}@media(max-width:760px){.supplierMasterPanel>div{padding:10px;overflow:visible;background:#f6faf7}.supplierMasterPanel>div>div{display:none}.supplierMasterPanel article{min-width:0;margin-bottom:10px;padding:13px;grid-template-columns:1fr 1fr;gap:10px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}.supplierMasterPanel article>span,.supplierMasterPanel article>strong{min-width:0;overflow-wrap:anywhere}.supplierMasterPanel article>.supplierRowActions,.supplierMasterPanel article>:nth-child(2){grid-column:1/-1}.supplierRowActions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))}.supplierRowActions button{min-height:44px}}.supplierMasterPanel>footer{padding:11px 15px;display:flex;justify-content:space-between;align-items:center}.supplierMasterPanel>footer>span{font-size:12px;color:var(--muted)}.supplierMasterPanel>footer>div{display:flex;gap:7px}.supplierMasterPanel>footer button{height:38px;border:1px solid var(--line);border-radius:8px;background:var(--panel);padding:0 12px;font-weight:900;color:#008f33}.supplierMasterPanel>footer button:disabled{opacity:.35}@media(max-width:600px){.supplierMasterPanel>footer{align-items:flex-start;gap:8px;flex-direction:column}}.newSupplierModal .supplierRucError,.supplierMasterFormGrid .supplierRucError{color:#b42318;font-weight:800;line-height:1.35}.newSupplierModal input[aria-invalid=true],.supplierMasterFormGrid input[aria-invalid=true]{border-color:#d92d20;background:#fff7f6}
/* Phone-only layout. Tablet and desktop styles remain unchanged. */
@media (max-width: 600px) {
  :root {
    --recimetal-phone-layout: 1;
  }

  html,
  body,
  #__next,
  .app {
    width: 100%;
    max-width: 100%;
  }

  body,
  .app,
  .content,
  .content.moduleContent,
  .content.dashboardV2 {
    min-width: 0;
    overflow-x: clip !important;
  }

  input,
  select,
  textarea {
    max-width: 100%;
    font-size: 16px !important;
  }

  .moduleHero h1,
  .dashboardHero h1,
  .pageHead h1,
  .h2hWorkflowHero h1,
  .h2hFileHero h1 {
    overflow-wrap: anywhere;
    line-height: 1.12;
  }

  .moduleHero,
  .dashboardHero,
  .pageHead,
  .h2hWorkflowHero {
    min-width: 0;
  }

  .moduleHero > *,
  .dashboardHero > *,
  .pageHead > *,
  .h2hWorkflowHero > * {
    min-width: 0;
    max-width: 100%;
  }

  .modulePanel,
  .panel,
  .recordsPanel,
  .securityPanel,
  .authorizationPanel,
  .manualPaymentForm,
  .manualRequestList,
  .h2hPanel,
  .h2hFileCard,
  .h2hFileRoute,
  .priceListPanel,
  .supplierImportRegistry {
    width: 100%;
    min-width: 0;
  }

  .modulePanel > header,
  .panel > header,
  .manualRequestList > header,
  .h2hPanel > header,
  .securityPanel > header,
  .supplierImportRegistry > header {
    align-items: stretch;
    gap: 10px;
  }

  .modulePanel > header button,
  .manualRequestList > header button,
  .h2hPanel > header button,
  .securityPanel > header button,
  .supplierImportRegistry > header button {
    width: 100%;
    min-height: 46px;
  }

  .panelHead,
  .catalogHead,
  .sectionTitle {
    height: auto;
    min-height: 58px;
    padding: 12px 14px;
  }

  .panelHeadActions {
    align-items: stretch;
    flex-wrap: wrap;
    width: 100%;
  }

  .panelHeadActions > * {
    flex: 1 1 140px;
    min-width: 0;
  }

  /* Compact phone navigation */
  .sidebar {
    width: min(312px, 88vw) !important;
    padding: 0 6px 10px !important;
    scrollbar-width: thin;
    scrollbar-color: #b9cec0 transparent;
  }

  .sidebar nav {
    gap: 2px !important;
    padding: 8px 4px 14px !important;
  }

  .menuSearch {
    position: sticky;
    top: 0;
    z-index: 3;
    height: 42px !important;
    margin: 0 2px 7px !important;
    border-color: #c7dacf !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, .97) !important;
    box-shadow: 0 5px 14px rgba(20, 61, 40, .08) !important;
  }

  .menuSearch input {
    font-size: 15px !important;
  }

  .navGroup {
    border: 0 !important;
    border-bottom: 1px solid #edf2ee !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .navGroup.expanded {
    margin: 2px 0;
    border: 1px solid #d9e7dd !important;
    border-radius: 11px !important;
    background: #f8fcf9 !important;
    box-shadow: none !important;
  }

  .sidebar nav .navGroupToggle {
    grid-template-columns: 32px minmax(0, 1fr) 30px !important;
    grid-template-rows: 1fr !important;
    column-gap: 8px !important;
    min-height: 50px !important;
    padding: 6px 8px !important;
    border-radius: 10px !important;
  }

  .navGroupIcon {
    grid-row: 1 !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 9px !important;
    font-size: 15px !important;
  }

  .navGroupToggle b {
    align-self: center !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
  }

  .navGroupToggle small {
    display: none !important;
  }

  .sidebar nav .navGroupToggle > i {
    grid-area: 1 / 3 !important;
    place-items: center;
    width: 28px;
    height: 28px;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
    color: #35624a !important;
    background: #e8f4ec !important;
    font: 900 13px/1 Arial, sans-serif !important;
    display: grid;
  }

  .navGroup.expanded .navGroupToggle > i {
    color: #fff !important;
    background: #159447 !important;
  }

  .navGroup.expanded .navGroupItems {
    padding: 0 5px 7px !important;
  }

  .sidebar nav .navGroupItems a {
    gap: 9px !important;
    min-height: 42px !important;
    padding: 5px 8px !important;
    border-radius: 9px !important;
    font-size: 13px !important;
  }

  .sidebar nav .navGroupItems a > span {
    flex: 0 0 28px;
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
  }

  .sidebar .systems {
    margin: 7px 4px 0 !important;
    padding: 8px !important;
    border-radius: 10px !important;
  }

  .sidebar .systems::before {
    margin: 0 5px 3px;
    font-size: 11px;
  }

  .sidebar .systems div {
    padding: 3px 5px !important;
    font-size: 11px;
  }

  .sidebar .systems .appVersion {
    margin-top: 5px;
    padding-top: 7px;
    font-size: 9px;
  }

  /* Payment request wizard */
  .manualPaymentRequest {
    scroll-padding-top: 178px;
  }

  .manualPaymentHero {
    margin-bottom: 10px;
  }

  .manualWizardSteps {
    grid-auto-flow: column;
    grid-auto-columns: minmax(138px, 44vw);
    grid-template-columns: none;
    top: 120px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .manualWizardSteps button {
    scroll-snap-align: start;
  }

  .manualFormGrid,
  .manualFormGrid.originGrid,
  .manualDocuments {
    grid-template-columns: minmax(0, 1fr);
    padding: 13px;
  }

  .manualFormGrid.originGrid > p,
  .manualFormGrid .wide {
    grid-column: auto;
  }

  .manualDocuments label {
    min-height: 104px;
  }

  .manualPaymentSubmit {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    bottom: 8px;
  }

  .manualPaymentSubmit > div {
    margin-right: 0;
  }

  .manualWizardActions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .manualWizardActions button,
  .manualPaymentSubmit button {
    width: 100%;
    min-height: 48px;
  }

  .manualPaymentEmpty {
    margin: 10px 0;
    padding: 30px 16px;
  }

  .manualRequestTable > div,
  .h2hRequestTable > div,
  .h2hMonitorTable > div,
  .auditTableHead {
    display: none !important;
  }

  .manualRequestTable,
  .h2hRequestTable,
  .h2hMonitorTable,
  .auditTable {
    display: grid;
    gap: 10px;
    padding: 10px;
    background: #f5f8f6;
  }

  .manualRequestTable article,
  .h2hRequestTable article,
  .h2hMonitorTable article,
  .auditTable > article {
    width: 100%;
    min-width: 0;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
    box-shadow: 0 4px 14px #143e270d;
  }

  .manualRequestTable article,
  .h2hRequestTable article {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px 9px;
    padding: 13px;
  }

  .manualRequestTable article > span,
  .h2hRequestTable article > span,
  .h2hMonitorTable article > span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .manualRequestTable article > span:nth-child(1),
  .manualRequestTable article > span:nth-child(2),
  .manualRequestTable article > span:nth-child(5),
  .h2hRequestTable article > span:nth-child(1),
  .h2hRequestTable article > span:nth-child(2),
  .h2hRequestTable article > span:nth-child(6),
  .h2hRequestTable article > .h2hRowActions {
    grid-column: 1 / -1;
  }

  .manualRequestTable article > span:nth-child(n + 3)::before,
  .h2hRequestTable article > span:nth-child(n + 3)::before,
  .h2hMonitorTable article > span::before {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 3px;
    font-size: 9px;
    font-weight: 900;
    display: block;
  }

  .manualRequestTable article > span:nth-child(3)::before { content: "Sucursal"; }
  .manualRequestTable article > span:nth-child(4)::before { content: "Pago"; }
  .manualRequestTable article > span:nth-child(5)::before { content: "Estado"; }
  .h2hRequestTable article > span:nth-child(3)::before { content: "Sucursal"; }
  .h2hRequestTable article > span:nth-child(4)::before { content: "Monto / fecha"; }
  .h2hRequestTable article > span:nth-child(5)::before { content: "Estado"; }
  .h2hRequestTable article > span:nth-child(6)::before { content: "Banco / conciliación"; }

  .h2hRowActions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    width: 100%;
  }

  .h2hRowActions button {
    width: 100%;
    min-height: 44px;
  }

  .h2hMonitorTable article {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 11px;
    padding: 13px;
  }

  .h2hMonitorTable article > span:nth-child(1)::before { content: "Solicitud / endpoint"; }
  .h2hMonitorTable article > span:nth-child(2)::before { content: "Inicio"; }
  .h2hMonitorTable article > span:nth-child(3)::before { content: "Estado técnico"; }
  .h2hMonitorTable article > span:nth-child(4)::before { content: "Estado normalizado"; }
  .h2hMonitorTable article > span:nth-child(5)::before { content: "Código banco"; }
  .h2hMonitorTable article > span:nth-child(6)::before { content: "Próxima consulta"; }

  .h2hMonitorTable article button {
    width: 100%;
    min-height: 44px;
    margin-top: 8px;
  }

  /* H2H workflow and bank detail */
  .h2hWorkflowTabs,
  .h2hFileTabs,
  .paymentTabs,
  .purchaseViewTabs,
  .auditTabs {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .h2hWorkflowTabs button,
  .h2hFileTabs button,
  .paymentTabs button,
  .purchaseViewTabs button,
  .auditTabs button {
    flex: 0 0 auto;
  }

  .h2hKpis {
    gap: 8px;
  }

  .h2hKpis article {
    min-width: 0;
    padding: 12px;
  }

  .h2hBatchLayout {
    grid-template-columns: minmax(0, 1fr);
  }

  .h2hBatchSteps {
    display: flex;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  .h2hBatchSteps button {
    flex: 0 0 132px;
  }

  .h2hBatchBuilder > footer,
  .h2hBatchStepBody > footer,
  .h2hApprovalAction footer,
  .h2hApprovalCards footer,
  .h2hBatchCards footer {
    align-items: stretch;
    flex-direction: column;
  }

  .h2hBatchBuilder > footer > span {
    margin-right: 0;
  }

  .h2hBatchBuilder > footer button,
  .h2hBatchStepBody > footer button,
  .h2hApprovalAction footer button {
    width: 100%;
    min-height: 46px;
  }

  .h2hFileHeroActions,
  .h2hFileDocumentActions {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .h2hFileHeroActions button,
  .h2hFileDocumentActions a {
    width: 100%;
    min-height: 44px;
  }

  .h2hFileCard > header,
  .h2hFileRoute > header {
    flex-direction: column;
  }

  .h2hFileCard > header > div,
  .h2hFileRoute > header > div {
    width: 100%;
    margin-right: 0;
  }

  .h2hFileReason,
  .h2hFileAudit,
  .h2hFileDocuments {
    padding-left: 14px;
    padding-right: 14px;
  }

  .h2hFileBatch,
  .h2hFileStageComment,
  .h2hFileApprovalDetail > .h2hApprovalAction,
  .h2hFileApprovalDetail > .h2hApprovalDecision,
  .h2hFileApprovalDetail > .h2hApprovalWaiting,
  .h2hFileApprovalDetail > .h2hOwnRequest,
  .h2hBankResult {
    margin-left: 14px;
    margin-right: 14px;
  }

  .h2hFileAudit article,
  .h2hFileDocuments article {
    min-width: 0;
  }

  .h2hFileAudit b,
  .h2hFileAudit em,
  .h2hFileDocuments b,
  .h2hFileDocuments em {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  /* Audit log */
  .auditFilters {
    grid-template-columns: minmax(0, 1fr);
    padding: 14px;
  }

  .auditTabs {
    padding: 12px 12px 0;
  }

  .auditTableRow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px 9px;
    padding: 13px;
  }

  .auditTableRow > span,
  .auditTableRow > button {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .auditTableRow > span:nth-child(1),
  .auditTableRow > span:nth-child(2),
  .auditTableRow > span:nth-child(6),
  .auditTableRow > button {
    grid-column: 1 / -1;
  }

  .auditTableRow > span::before {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 3px;
    font-size: 9px;
    font-weight: 900;
    display: block;
  }

  .auditTableRow > span:nth-child(1)::before { content: "Fecha y hora"; }
  .auditTableRow > span:nth-child(2)::before { content: "Usuario"; }
  .auditTableRow > span:nth-child(3)::before { content: "Sucursal"; }
  .auditTableRow > span:nth-child(4)::before { content: "Módulo / tabla"; }
  .auditTableRow > span:nth-child(5)::before { content: "Acción"; }
  .auditTableRow > span:nth-child(6)::before { content: "Registro"; }
  .auditTableRow > span:nth-child(7)::before { content: "Resultado"; }

  .auditTableRow > button {
    width: 100%;
    min-height: 44px;
  }

  .auditDetail {
    padding: 0 13px 13px;
  }

  .auditDetail > div {
    grid-template-columns: minmax(0, 1fr);
  }

  .auditDetail pre {
    width: 100%;
    max-width: 100%;
  }

  .auditPagination {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
  }

  .auditPagination div,
  .auditPagination button {
    width: 100%;
  }

  /* Security, users and permissions */
  .securityPanel > header {
    flex-direction: column;
  }

  .securityPanel > header label {
    width: 100%;
    min-height: 46px;
  }

  .roleLayout {
    grid-template-columns: minmax(0, 1fr);
  }

  .roleLayout > aside {
    display: flex;
    gap: 8px;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  .roleLayout > aside button {
    flex: 0 0 150px;
    min-height: 54px;
  }

  .roleLayout > section > header {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .roleLayout > section > header button {
    width: 100%;
    min-height: 46px;
  }

  .permissionMatrix,
  .branchTable,
  .supplierImportTable,
  .priceListTable {
    max-width: 100%;
    overflow-x: auto !important;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .permissionMatrix {
    contain: paint;
  }

  .permissionMatrix > div {
    position: relative !important;
    top: auto !important;
  }

  .userAccessModal > header,
  .userAccessModal > footer {
    padding-left: 14px;
    padding-right: 14px;
  }

  .userAccessModal fieldset {
    margin-left: 14px;
    margin-right: 14px;
  }

  .userFormGrid {
    padding: 14px;
  }

  .userAccessModal > footer {
    align-items: stretch;
    flex-direction: column;
  }

  .userAccessModal > footer button {
    width: 100%;
    min-height: 46px;
  }

  /* Branches, scales and printers */
  .branchCreate {
    padding: 13px;
  }

  .branchTable article,
  .branchTable header {
    min-width: 920px;
  }

  .branchTable::after,
  .permissionMatrix::after,
  .supplierImportTable::after,
  .priceListTable::after {
    content: "Deslice horizontalmente para ver todos los datos";
    color: var(--muted);
    background: var(--soft);
    border-top: 1px solid var(--line);
    padding: 8px 12px;
    font-size: 10px;
    font-weight: 800;
    display: block;
    position: sticky;
    left: 0;
  }

  .scaleAdminToolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .scaleAdminToolbar label,
  .scaleAdminToolbar button {
    width: 100%;
    min-width: 0;
    min-height: 46px;
  }

  .scaleCards {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .scaleCards article {
    min-width: 0;
    padding: 15px;
  }

  .scaleCards article header {
    flex-wrap: wrap;
  }

  .scaleCards article header > div {
    min-width: 0;
  }

  .scaleCards article header h2,
  .scaleCards article header h3,
  .scaleCards article header p {
    overflow-wrap: anywhere;
  }

  .scaleFacts,
  .scaleForm,
  .printerFormGrid {
    grid-template-columns: minmax(0, 1fr);
  }

  .scaleCards article footer,
  .scaleModal > footer,
  .printerModalFooter {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .scaleCards article footer button,
  .scaleModal > footer button,
  .printerModalFooter button {
    width: 100%;
    min-height: 46px;
  }

  .scaleModal,
  .printerModal {
    padding-left: 14px;
    padding-right: 14px;
  }

  .printerModal {
    padding: 0;
  }

  .printerForm {
    padding: 14px;
  }

  /* Imports and price lists */
  .supplierImportTop,
  .supplierDbImport,
  .productImportGrid,
  .priceListActions {
    grid-template-columns: minmax(0, 1fr);
  }

  .supplierImportRegistry > header {
    grid-template-columns: minmax(0, 1fr);
  }

  .supplierImportRegistry > header label {
    width: 100%;
  }

  .supplierImportRegistry > header button {
    min-height: 44px;
  }

  .supplierDbImport > article,
  .priceListActions article {
    align-items: stretch;
    flex-direction: column;
  }

  .priceListActions article > div {
    margin-right: 0;
  }

  .priceListActions input:not([type="file"]),
  .priceListActions select,
  .priceListActions button,
  .priceListActions article > span {
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 46px;
  }

  .priceListActions article > span {
    min-height: 0;
  }

  .priceListPanel > footer {
    align-items: stretch;
    width: 100%;
  }

  .priceListPanel > footer > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .priceListPanel > footer button {
    width: 100%;
    min-height: 44px;
    margin-left: 0 !important;
  }

  .supplierImportRules > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .importHistoryRows article {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Authorization and common dialogs */
  .authorizationToolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    padding: 16px 14px;
  }

  .authorizationProgress {
    min-width: 0;
  }

  .authorizationNotice,
  .authorizationEmpty,
  .authorizationLoading,
  .authorizationMessage {
    margin-left: 14px;
    margin-right: 14px;
  }

  .authorizationNotice {
    align-items: flex-start;
    flex-direction: column;
  }

  .authorizationCards {
    grid-template-columns: minmax(0, 1fr);
    padding: 14px;
  }

  .authorizationCard {
    min-width: 0;
    padding: 15px;
  }

  .modalBackdrop,
  .modalOverlay,
  .recordModalBackdrop,
  .supplierMasterBackdrop,
  .productPreviewBackdrop,
  .weighingDetailBackdrop {
    padding: 7px;
  }

  .modal,
  .scaleModal,
  .printerModal,
  .userAccessModal,
  .passwordAdminModal,
  .recordDetail,
  .supplierMasterForm,
  .productPreviewModal,
  .receiptModal {
    width: 100% !important;
    max-width: none !important;
    max-height: calc(100dvh - 14px) !important;
    border-radius: 14px !important;
  }

  .productPreviewModal {
    overflow-y: auto;
  }

  .modal > header,
  .scaleModal > header,
  .userAccessModal > header,
  .recordDetail > header,
  .supplierMasterForm > header {
    min-width: 0;
  }

  .modal > header h2,
  .scaleModal > header h2,
  .userAccessModal > header h2,
  .recordDetail > header h2,
  .supplierMasterForm > header h2 {
    overflow-wrap: anywhere;
    font-size: 22px;
  }

  .recordsPager,
  .recordDetail > footer,
  .supplierMasterForm > footer,
  .productEditor > article > footer,
  .authorizationFooter {
    align-items: stretch;
  }

  .recordsPager button,
  .recordDetail > footer button,
  .supplierMasterForm > footer button,
  .productEditor > article > footer button,
  .authorizationFooter button {
    min-height: 46px;
  }
}
.tabletFullscreenButton {
  display: none;
}

@media (min-width: 601px) and (max-width: 1366px) {
  .tabletFullscreenButton[data-tablet-visible="true"] {
    appearance: none;
    position: fixed;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(20px, calc(env(safe-area-inset-bottom) + 16px));
    z-index: 2147483000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 126px;
    min-height: 48px;
    padding: 0 17px;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #087c32, #16a34a);
    box-shadow: 0 12px 28px rgba(8, 82, 39, .3), 0 2px 7px rgba(9, 45, 25, .22);
    font: 850 14px/1 Arial, "Helvetica Neue", sans-serif;
    letter-spacing: .01em;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
  }

  .tabletFullscreenButton[data-tablet-visible="true"]:active {
    transform: scale(.97);
  }

  .tabletFullscreenButton[data-tablet-visible="true"]:focus-visible {
    outline: 3px solid rgba(245, 183, 44, .88);
    outline-offset: 3px;
  }

  .tabletFullscreenButton[data-fullscreen="true"] {
    background: linear-gradient(135deg, #173d2a, #245a3c);
  }

  .tabletFullscreenButton[data-error="true"] {
    background: linear-gradient(135deg, #9a5b00, #bd7200);
  }

  .tabletFullscreenIcon {
    font-size: 21px;
    font-style: normal;
    line-height: 1;
  }

  body:has(.bottomBar) > .tabletFullscreenButton[data-tablet-visible="true"] {
    bottom: max(104px, calc(env(safe-area-inset-bottom) + 98px));
  }
}

@media print {
  .tabletFullscreenButton {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tabletFullscreenButton {
    transition: none !important;
  }
}

/* Paginación del catálogo de usuarios */
.userAdminPagination{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 22px;border-top:1px solid #dce9e1;background:#f8fbf9;color:#53675c}
.userAdminPagination>div{display:flex;align-items:center;gap:12px}
.userAdminPagination b{min-width:110px;text-align:center;color:#173f2c}
.userAdminPagination button{min-width:120px}
@media(max-width:700px){.userAdminPagination{align-items:stretch;flex-direction:column;padding:14px}.userAdminPagination>div{display:grid;grid-template-columns:1fr auto 1fr}.userAdminPagination button{min-width:0;padding:10px 8px}.userAdminPagination b{min-width:0;font-size:12px}.securityPanel>header>div>span{display:block}}

/* Acciones compactas del catálogo de usuarios */
.userAdminTable .userActionButtons{display:flex!important;align-items:center;justify-content:flex-start;flex-wrap:nowrap!important;gap:6px;white-space:nowrap}
.userAdminTable .userActionButtons button{display:inline-grid!important;place-items:center;flex:0 0 36px!important;width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important;padding:0!important;border-radius:9px!important;font-size:17px!important;line-height:1!important;font-weight:800!important}
.userAdminTable .userActionButtons button:hover{transform:translateY(-1px);box-shadow:0 5px 12px rgba(20,61,42,.15)}
@media(max-width:700px){.userAdminTable .userActionButtons{overflow-x:auto;max-width:100%;padding-bottom:2px}.userAdminTable .userActionButtons button{flex-basis:34px!important;width:34px!important;min-width:34px!important;height:34px!important;min-height:34px!important}}

/* Gerencia que reporta en el catálogo de usuarios */
.userAdminTable{overflow-x:auto}
.userAdminTable>div,.userAdminTable>article{grid-template-columns:minmax(230px,1.35fr) minmax(120px,.78fr) minmax(175px,.9fr) minmax(150px,.82fr) minmax(210px,1.05fr) minmax(145px,.68fr) minmax(190px,.82fr)!important;min-width:1280px}
.userAdminTable .reportingManagement{display:flex;flex-direction:column;gap:3px}
.userAdminTable .reportingManagement b{font-size:14px;line-height:1.2;color:#18372a}
.userAdminTable .reportingManagement small{font-size:11px;color:#789085}
@media(max-width:700px){.userAdminTable{overflow:visible}.userAdminTable>div{display:none!important}.userAdminTable>article{min-width:0!important;grid-template-columns:1fr!important}.userAdminTable .reportingManagement{padding:8px 0;border-top:1px solid #e6efe9}.userAdminTable .reportingManagement:before{content:"GERENCIA QUE REPORTA";font-size:10px;font-weight:800;letter-spacing:.06em;color:#789085}}
