/* Radios más suaves y coherentes inspirados en Apple HIG; conserva paleta y geometría de Copiones MDZ. */
:root {
  --radio-control-copiones: 12px;
  --radio-tarjeta-copiones: 18px;
  --radio-panel-copiones: 22px;
}

/* Tarjetas, pedidos y superficies agrupadas. */
html body .card,
html body .pedido-card,
html body details.pedido-card,
html body .trabajo-web,
html body #mostrador-form .mostrador-trabajo,
html body .configuracion-impresion,
html body .detalle-impresion > summary,
html body .dinero-sucursal,
html body .stock-lista-desplegable,
html body .inicio-grid article,
html body .inicio-sucursales article,
html body .inicio-pasos,
html body .access-card,
html body .aviso-pedidos-archivos,
html body .barra-filtros,
html body .barra-busqueda,
html body .resumen-sucursal,
html body .resumen-periodo,
html body .contador-admin-periodos > div {
  border-radius: var(--radio-tarjeta-copiones) !important;
}

/* Los paneles que se abren como una hoja conservan espacio para el contenido. */
html body #mostrador-dialog,
html body #saldo-mostrador-dialog,
html body #falladas-dialog,
html body .contacto-sucursales nav,
html body .modal,
html body dialog {
  border-radius: var(--radio-panel-copiones) !important;
}

/* Campos táctiles y botones: radios moderados, sin convertirlos en píldoras. */
html body input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
html body select,
html body textarea,
html body .barra-filtros input,
html body .barra-filtros select,
html body .dinero-filtros input,
html body .dinero-filtros select,
html body .pedido-form button,
html body .access-card button,
html body .inicio-boton,
html body .inicio-secundario,
html body .inicio-acceso,
html body #mostrador-form button,
html body #mostrador-abrir,
html body #mostrador-registrar,
html body #saldo-mostrador-dialog button,
html body .btn-red,
html body .btn-descargar,
html body button:not(.link):not([aria-label*="Cerrar"]):not(.circular):not(.icon-button) {
  border-radius: var(--radio-control-copiones) !important;
}

/* Foco visible redondeado y accesible. */
html body :is(button, input, select, textarea, summary, a):focus-visible {
  border-radius: var(--radio-control-copiones);
}

@media (max-width: 700px) {
  :root {
    --radio-tarjeta-copiones: 16px;
    --radio-panel-copiones: 20px;
  }
}
